GFPoly.monominalPoly constructor
GFPoly.monominalPoly(
- GaloisField field,
- int degree,
- int coeff
Implementation
factory GFPoly.monominalPoly(GaloisField field, int degree, int coeff) {
if (coeff == 0) {
return field.zero();
}
final result = List<int>.filled(degree + 1, 0);
result[0] = coeff;
return GFPoly(field, result);
}