multByMonominal method
Implementation
GFPoly multByMonominal(int degree, int coeff) {
if (coeff == 0) {
return gf.zero();
}
final size = coefficients.length;
final result = List<int>.filled(size + degree, 0);
for (var i = 0; i < size; i++) {
result[i] = gf.multiply(coefficients[i], coeff);
}
return GFPoly(gf, result);
}