final class ModulusPoly
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int[] |
coefficients |
private ModulusGF |
field |
Constructor and Description |
---|
ModulusPoly(ModulusGF field,
int[] coefficients) |
Modifier and Type | Method and Description |
---|---|
(package private) ModulusPoly |
add(ModulusPoly other) |
(package private) int |
evaluateAt(int a) |
(package private) int |
getCoefficient(int degree) |
(package private) int[] |
getCoefficients() |
(package private) int |
getDegree() |
(package private) boolean |
isZero() |
(package private) ModulusPoly |
multiply(int scalar) |
(package private) ModulusPoly |
multiply(ModulusPoly other) |
(package private) ModulusPoly |
multiplyByMonomial(int degree,
int coefficient) |
(package private) ModulusPoly |
negative() |
(package private) ModulusPoly |
subtract(ModulusPoly other) |
java.lang.String |
toString() |
private final ModulusGF field
private final int[] coefficients
ModulusPoly(ModulusGF field, int[] coefficients)
int[] getCoefficients()
int getDegree()
boolean isZero()
int getCoefficient(int degree)
int evaluateAt(int a)
ModulusPoly add(ModulusPoly other)
ModulusPoly subtract(ModulusPoly other)
ModulusPoly multiply(ModulusPoly other)
ModulusPoly negative()
ModulusPoly multiply(int scalar)
ModulusPoly multiplyByMonomial(int degree, int coefficient)
public java.lang.String toString()
toString
in class java.lang.Object