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

java.lang.Object
  extended by edu.jas.poly.PolynomialList<C>
      extended by edu.jas.poly.OrderedPolynomialList<C>
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, 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
OrderedPolynomialList(GenPolynomialRing<C> r, java.util.List<GenPolynomial<C>> l)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object p)
          Comparison with any other object.
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.
 
Methods inherited from class edu.jas.poly.PolynomialList
castToList, castToMatrix, castToSolvableList, castToSolvableList, castToSolvableMatrix, clone, compareTo, getModuleList, hashCode, isONE, isZERO, toScript, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

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 class PolynomialList<C extends RingElem<C>>
See Also:
Object.equals(java.lang.Object)

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.