- property galois.ReedSolomon.generator_poly : Poly
The generator polynomial \(g(x)\) whose roots are
roots
.Examples¶
In [1]: rs = galois.ReedSolomon(15, 9); rs Out[1]: <Reed-Solomon Code: [15, 9, 7] over GF(2^4)> In [2]: rs.generator_poly Out[2]: Poly(x^6 + 7x^5 + 9x^4 + 3x^3 + 12x^2 + 10x + 12, GF(2^4))
Evaluate the generator polynomial at its roots.
In [3]: rs.generator_poly(rs.roots) Out[3]: GF([0, 0, 0, 0, 0, 0], order=2^4)