getPolynomial method
Implementation
GFPoly getPolynomial(int degree) {
if (degree >= polynomes.length) {
var last = polynomes[polynomes.length - 1];
for (var d = polynomes.length; d <= degree; d++) {
final next =
last.multiply(GFPoly(gf, <int>[1, gf.aLogTbl[d - 1 + gf.base]]));
polynomes.add(next);
last = next;
}
}
return polynomes[degree];
}