Package | Description |
---|---|
org.spongycastle.math.ntru.polynomial |
Modifier and Type | Method and Description |
---|---|
BigDecimalPolynomial |
BigIntPolynomial.div(java.math.BigDecimal divisor,
int decimalPlaces)
Divides each coefficient by a
BigDecimal and rounds the result to decimalPlaces places. |
BigDecimalPolynomial |
BigDecimalPolynomial.mult(BigDecimalPolynomial poly2)
Multiplies the polynomial by another, taking the indices mod N.
|
BigDecimalPolynomial |
BigDecimalPolynomial.mult(BigIntPolynomial poly2)
Multiplies the polynomial by another.
|
private BigDecimalPolynomial |
BigDecimalPolynomial.multRecursive(BigDecimalPolynomial poly2)
Karazuba multiplication
|
Modifier and Type | Method and Description |
---|---|
void |
BigDecimalPolynomial.add(BigDecimalPolynomial b)
Adds another polynomial which can have a different number of coefficients.
|
BigDecimalPolynomial |
BigDecimalPolynomial.mult(BigDecimalPolynomial poly2)
Multiplies the polynomial by another, taking the indices mod N.
|
private BigDecimalPolynomial |
BigDecimalPolynomial.multRecursive(BigDecimalPolynomial poly2)
Karazuba multiplication
|
(package private) void |
BigDecimalPolynomial.sub(BigDecimalPolynomial b)
Subtracts another polynomial which can have a different number of coefficients.
|