|
Bouncy Castle Cryptography 1.50 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.bouncycastle.pqc.math.ntru.polynomial.BigDecimalPolynomial
public class BigDecimalPolynomial
A polynomial with BigDecimal coefficients.
Some methods (like add) change the polynomial, others (like mult) do
not but return the result as a new polynomial.
| Constructor Summary | |
|---|---|
BigDecimalPolynomial(BigIntPolynomial p)
Constructs a BigDecimalPolynomial from a BigIntPolynomial. |
|
| Method Summary | |
|---|---|
void |
add(BigDecimalPolynomial b)
Adds another polynomial which can have a different number of coefficients. |
java.lang.Object |
clone()
Makes a copy of the polynomial that is independent of the original. |
java.math.BigDecimal[] |
getCoeffs()
|
void |
halve()
Divides all coefficients by 2. |
BigDecimalPolynomial |
mult(BigDecimalPolynomial poly2)
Multiplies the polynomial by another, taking the indices mod N. |
BigDecimalPolynomial |
mult(BigIntPolynomial poly2)
Multiplies the polynomial by another. |
BigIntPolynomial |
round()
Rounds all coefficients to the nearest integer. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BigDecimalPolynomial(BigIntPolynomial p)
BigDecimalPolynomial from a BigIntPolynomial. The two polynomials are independent of each other.
p - the original polynomial| Method Detail |
|---|
public void halve()
public BigDecimalPolynomial mult(BigIntPolynomial poly2)
poly2 - the polynomial to multiply by
public BigDecimalPolynomial mult(BigDecimalPolynomial poly2)
poly2 - the polynomial to multiply by
public void add(BigDecimalPolynomial b)
b - another polynomialpublic BigIntPolynomial round()
BigInteger coefficientspublic java.lang.Object clone()
clone in class java.lang.Objectpublic java.math.BigDecimal[] getCoeffs()
|
Bouncy Castle Cryptography 1.50 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||