Package edu.jas.poly

Class OrderedPolynomialList<C extends RingElem<C>>

  • All Implemented Interfaces:
    java.io.Serializable, 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 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​(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:
        L - polynomial list.
        Returns:
        sorted polynomial list from L.
      • 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.
      • sortDegree

        public static <C extends RingElem<C>> java.util.List<GenPolynomial<C>> sortDegree​(java.util.List<GenPolynomial<C>> L)
        Sort a list of polynomials with respect to the ascending order of the degree.
        Parameters:
        L - polynomial list.
        Returns:
        sorted polynomial list from L.