Interface TernaryPolynomial

All Superinterfaces:
Polynomial
All Known Implementing Classes:
DenseTernaryPolynomial, SparseTernaryPolynomial

public interface TernaryPolynomial extends Polynomial
A polynomial whose coefficients are all equal to -1, 0, or 1
  • Method Details

    • mult

      Multiplies the polynomial by an IntegerPolynomial, taking the indices mod N
      Specified by:
      mult in interface Polynomial
      Parameters:
      poly2 - a polynomial
      Returns:
      the product of the two polynomials
    • getOnes

      int[] getOnes()
    • getNegOnes

      int[] getNegOnes()
    • size

      int size()
      Returns the maximum number of coefficients the polynomial can have
    • clear

      void clear()