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.
    See Also:
    Serialized Form
    • 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)
      • hashCode

        public int hashCode()
        Hash code for OrderedPolynomialList.
        Overrides:
        hashCode in class PolynomialList<C extends RingElem<C>>
        See Also:
        Object.hashCode()
      • 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.