Package edu.jas.poly
Class OrderedModuleList<C extends RingElem<C>>
- java.lang.Object
-
- edu.jas.poly.ModuleList<C>
-
- edu.jas.poly.OrderedModuleList<C>
-
- All Implemented Interfaces:
java.io.Serializable
public class OrderedModuleList<C extends RingElem<C>> extends ModuleList<C>
Ordered list of vectors of polynomials. Mainly for storage and printing / toString and conversions to other representations. Lists of polynomials in this list are sorted according to the head terms of the first column.- Author:
- Heinz Kredel
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class edu.jas.poly.ModuleList
cols, list, ring, rows
-
-
Constructor Summary
Constructors Constructor Description OrderedModuleList(GenPolynomialRing<C> r, java.util.List<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 m)
Comparison with any other object.int
hashCode()
Hash code for OrderedModuleList.static <C extends RingElem<C>>
java.util.List<java.util.List<GenPolynomial<C>>>sort(GenPolynomialRing<C> r, java.util.List<java.util.List<GenPolynomial<C>>> l)
Sort a list of vectors of polynomials with respect to the ascending order of the leading Exponent vectors of the first column.-
Methods inherited from class edu.jas.poly.ModuleList
castToList, castToSolvableList, getPolynomialList, getPolynomialList, getPolynomialList, isEmpty, isZERO, padCols, toScript, toString, vecToList
-
-
-
-
Constructor Detail
-
OrderedModuleList
public OrderedModuleList(GenPolynomialRing<C> r, java.util.List<java.util.List<GenPolynomial<C>>> l)
Constructor.- Parameters:
r
- polynomial ring factory.l
- list of list of polynomials.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object m)
Comparison with any other object.- Overrides:
equals
in classModuleList<C extends RingElem<C>>
- See Also:
Object.equals(java.lang.Object)
-
hashCode
public int hashCode()
Hash code for OrderedModuleList.- Overrides:
hashCode
in classModuleList<C extends RingElem<C>>
- See Also:
Object.hashCode()
-
sort
public static <C extends RingElem<C>> java.util.List<java.util.List<GenPolynomial<C>>> sort(GenPolynomialRing<C> r, java.util.List<java.util.List<GenPolynomial<C>>> l)
Sort a list of vectors of polynomials with respect to the ascending order of the leading Exponent vectors of the first column. The term order is taken from the ring.- Parameters:
r
- polynomial ring factory.l
- list of polynomial lists.- Returns:
- sorted list of polynomial lists from l.
-
-