Interface TernaryPolynomial
- All Superinterfaces:
Polynomial
- All Known Implementing Classes:
DenseTernaryPolynomial
,SparseTernaryPolynomial
A polynomial whose coefficients are all equal to -1, 0, or 1
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
int[]
int[]
getOnes()
mult
(IntegerPolynomial poly2) Multiplies the polynomial by anIntegerPolynomial
, taking the indices mod Nint
size()
Returns the maximum number of coefficients the polynomial can haveMethods inherited from interface org.bouncycastle.pqc.legacy.math.ntru.polynomial.Polynomial
mult, mult, toIntegerPolynomial
-
Method Details
-
mult
Multiplies the polynomial by anIntegerPolynomial
, taking the indices mod N- Specified by:
mult
in interfacePolynomial
- 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()
-