Package edu.jas.poly

Class ExpVectorPair

  • All Implemented Interfaces:
    java.io.Serializable

    public class ExpVectorPair
    extends java.lang.Object
    implements java.io.Serializable
    ExpVectorPair implements pairs of exponent vectors for S-polynomials. Objects of this class are immutable.
    Author:
    Heinz Kredel
    See Also:
    Serialized Form
    • Method Detail

      • totalDeg

        public long totalDeg()
        Returns:
        total degree of both parts.
      • toString

        public java.lang.String toString()
        toString.
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object B)
        equals.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        B - other.
        Returns:
        true, if this == b, else false.
      • equals

        public boolean equals​(ExpVectorPair b)
        equals.
        Parameters:
        b - other.
        Returns:
        true, if this == b, else false.
      • hashCode

        public int hashCode()
        hash code.
        Overrides:
        hashCode in class java.lang.Object
        See Also:
        Object.hashCode()
      • isMultiple

        public boolean isMultiple​(ExpVectorPair p)
        isMultiple.
        Parameters:
        p - other.
        Returns:
        true, if this is a multiple of b, else false.