Package edu.jas.poly

Class ExpVectorPair

java.lang.Object
edu.jas.poly.ExpVectorPair
All Implemented Interfaces:
Serializable

public class ExpVectorPair extends Object implements Serializable
ExpVectorPair implements pairs of exponent vectors for S-polynomials. Objects of this class are immutable.
See Also:
  • Field Details

  • Constructor Details

    • ExpVectorPair

      public ExpVectorPair(ExpVector e, ExpVector f)
      Constructors for ExpVectorPair.
      Parameters:
      e - first part.
      f - second part.
  • Method Details

    • getFirst

      public ExpVector getFirst()
      Returns:
      first part.
    • getSecond

      public ExpVector getSecond()
      Returns:
      second part.
    • totalDeg

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

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

      public boolean equals(Object B)
      equals.
      Overrides:
      equals in class 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 Object
      See Also:
    • isMultiple

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