- property galois.GLFSR.field : type[FieldArray]
The
FieldArraysubclass for the finite field that defines the linear arithmetic.Examples¶
In [1]: feedback_poly = galois.primitive_poly(7, 4).reverse(); feedback_poly Out[1]: Poly(5x^4 + 3x^3 + x^2 + 1, GF(7)) In [2]: lfsr = galois.GLFSR(feedback_poly); lfsr Out[2]: <Galois LFSR: f(x) = 1 + x^2 + 3x^3 + 5x^4 over GF(7)> In [3]: lfsr.field Out[3]: <class 'galois.GF(7, primitive_element='3', irreducible_poly='x + 4')'>