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.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
Method Summary |
boolean |
equals(java.lang.Object p)
Comparison with any other object. |
static
|
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 |
OrderedPolynomialList
public OrderedPolynomialList(GenPolynomialRing<C> r,
java.util.List<GenPolynomial<C>> l)
- Constructor.
- Parameters:
r
- polynomial ring factory.l
- list of polynomials.
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.