edu.jas.poly
Class OrderedModuleList<C extends RingElem<C>>

java.lang.Object
  extended by edu.jas.poly.ModuleList<C>
      extended by 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
OrderedModuleList(GenPolynomialRing<C> r, java.util.List<java.util.List<GenPolynomial<C>>> l)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object m)
          Comparison with any other object.
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, hashCode, padCols, toScript, toString, vecToList
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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 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.