Package edu.jas.poly
Class OrderedPolynomialList<C extends RingElem<C>>
java.lang.Object
edu.jas.poly.PolynomialList<C>
edu.jas.poly.OrderedPolynomialList<C>
- All Implemented Interfaces:
Serializable
,Comparable<PolynomialList<C>>
Ordered list of polynomials. Mainly for storage and printing / toString and
conversions to other representations. Polynomials in this list are sorted
according to their head terms.
- See Also:
-
Field Summary
Fields inherited from class edu.jas.poly.PolynomialList
list, ring
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Comparison with any other object.int
hashCode()
Hash code for OrderedPolynomialList.static <C extends RingElem<C>>
List<GenPolynomial<C>> sort
(GenPolynomialRing<C> r, List<GenPolynomial<C>> L) Sort a list of polynomials with respect to the ascending order of the leading Exponent vectors.static <C extends RingElem<C>>
List<GenPolynomial<C>> sort
(List<GenPolynomial<C>> L) Sort a list of polynomials with respect to the ascending order of the leading Exponent vectors.static <C extends RingElem<C>>
List<GenPolynomial<C>> sortDegree
(List<GenPolynomial<C>> L) Sort a list of polynomials with respect to the ascending order of the degree.Methods inherited from class edu.jas.poly.PolynomialList
castToList, castToMatrix, castToSolvableList, castToSolvableList, castToSolvableMatrix, compareTo, copy, deHomogenize, deltaExpVectors, deltaExpVectors, getList, getModuleList, getSolvableList, getSolvableRing, homogenize, isEmpty, isHomogeneous, isONE, isZERO, leadingWeightPolynomials, toScript, toString
-
Constructor Details
-
OrderedPolynomialList
Constructor.- Parameters:
r
- polynomial ring factory.l
- list of polynomials.
-
-
Method Details
-
equals
Comparison with any other object.- Overrides:
equals
in classPolynomialList<C extends RingElem<C>>
- See Also:
-
hashCode
public int hashCode()Hash code for OrderedPolynomialList.- Overrides:
hashCode
in classPolynomialList<C extends RingElem<C>>
- See Also:
-
sort
Sort a list of polynomials with respect to the ascending order of the leading Exponent vectors. The term order is taken from the ring.- Parameters:
L
- polynomial list.- Returns:
- sorted polynomial list from L.
-
sort
public static <C extends RingElem<C>> List<GenPolynomial<C>> sort(GenPolynomialRing<C> r, List<GenPolynomial<C>> L) Sort a list of polynomials with respect to the ascending order of the leading Exponent vectors. The term order is taken from the ring.- Parameters:
r
- polynomial ring factory.L
- polynomial list.- Returns:
- sorted polynomial list from L.
-
sortDegree
Sort a list of polynomials with respect to the ascending order of the degree.- Parameters:
L
- polynomial list.- Returns:
- sorted polynomial list from L.
-