public interface Polynomial
| Modifier and Type | Method and Description |
|---|---|
BigIntPolynomial |
mult(BigIntPolynomial poly2)
Multiplies the polynomial by a
BigIntPolynomial, taking the indices mod N. |
IntegerPolynomial |
mult(IntegerPolynomial poly2)
Multiplies the polynomial by an
IntegerPolynomial,
taking the indices mod N. |
IntegerPolynomial |
mult(IntegerPolynomial poly2,
int modulus)
Multiplies the polynomial by an
IntegerPolynomial,
taking the coefficient values mod modulus and the indices mod N. |
IntegerPolynomial |
toIntegerPolynomial()
Returns a polynomial that is equal to this polynomial (in the sense that
mult(IntegerPolynomial, int)
returns equal IntegerPolynomials). |
IntegerPolynomial mult(IntegerPolynomial poly2)
IntegerPolynomial,
taking the indices mod N.poly2 - a polynomialIntegerPolynomial mult(IntegerPolynomial poly2, int modulus)
IntegerPolynomial,
taking the coefficient values mod modulus and the indices mod N.poly2 - a polynomialmodulus - a modulus to applyIntegerPolynomial toIntegerPolynomial()
mult(IntegerPolynomial, int)
returns equal IntegerPolynomials). The new polynomial is guaranteed to be independent of the original.IntegerPolynomial.BigIntPolynomial mult(BigIntPolynomial poly2)
BigIntPolynomial, taking the indices mod N. Does not
change this polynomial but returns the result as a new polynomial.poly2 - the polynomial to multiply by