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:
java.io.Serializable
,java.lang.Comparable<PolynomialList<C>>
public class OrderedPolynomialList<C extends RingElem<C>> extends 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.- Author:
- Heinz Kredel
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class edu.jas.poly.PolynomialList
list, ring
-
-
Constructor Summary
Constructors Constructor Description OrderedPolynomialList(GenPolynomialRing<C> r, java.util.List<GenPolynomial<C>> l)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object p)
Comparison with any other object.int
hashCode()
Hash code for OrderedPolynomialList.static <C extends RingElem<C>>
java.util.List<GenPolynomial<C>>sort(GenPolynomialRing<C> r, java.util.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>>
java.util.List<GenPolynomial<C>>sort(java.util.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>>
java.util.List<GenPolynomial<C>>sortDegree(java.util.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 Detail
-
OrderedPolynomialList
public OrderedPolynomialList(GenPolynomialRing<C> r, java.util.List<GenPolynomial<C>> l)
Constructor.- Parameters:
r
- polynomial ring factory.l
- list of polynomials.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object p)
Comparison with any other object.- Overrides:
equals
in classPolynomialList<C extends RingElem<C>>
- See Also:
Object.equals(java.lang.Object)
-
hashCode
public int hashCode()
Hash code for OrderedPolynomialList.- Overrides:
hashCode
in classPolynomialList<C extends RingElem<C>>
- See Also:
Object.hashCode()
-
sort
public static <C extends RingElem<C>> java.util.List<GenPolynomial<C>> sort(java.util.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:
L
- polynomial list.- Returns:
- sorted polynomial list from L.
-
sort
public static <C extends RingElem<C>> java.util.List<GenPolynomial<C>> sort(GenPolynomialRing<C> r, java.util.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
public static <C extends RingElem<C>> java.util.List<GenPolynomial<C>> sortDegree(java.util.List<GenPolynomial<C>> L)
Sort a list of polynomials with respect to the ascending order of the degree.- Parameters:
L
- polynomial list.- Returns:
- sorted polynomial list from L.
-
-