property galois.Poly.field : Type[Array]

The Array subclass for the finite field the coefficients are over.

Examples

In [1]: a = galois.Poly.Random(5); a
Out[1]: Poly(x^5 + x^3 + x^2 + x, GF(2))

In [2]: a.field
Out[2]: galois.GF2
In [3]: GF = galois.GF(2**8)

In [4]: b = galois.Poly.Random(5, field=GF); b
Out[4]: Poly(179x^5 + 203x^4 + 133x^3 + 117x^2 + 36x + 93, GF(2^8))

In [5]: b.field
Out[5]: galois.GF(2^8)

Last update: Jul 24, 2022