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
Method Summary |
boolean |
equals(java.lang.Object m)
Comparison with any other object. |
static
|
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 java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
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.
equals
public boolean equals(java.lang.Object m)
- Comparison with any other object.
- Overrides:
equals
in class ModuleList<C extends RingElem<C>>
- See Also:
Object.equals(java.lang.Object)
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.