- galois.FieldArray.__str__() str
Displays the array without specifying the class or finite field order.
Notes¶
This function does not prepend
GF(
and or append, order=p^m)
. It also omits the comma separators.Examples¶
In [1]: GF = galois.GF(3**2) In [2]: x = GF([4, 2, 7, 5]) In [3]: print(x) [4 2 7 5]
In [4]: GF = galois.GF(3**2, repr="poly") In [5]: x = GF([4, 2, 7, 5]) In [6]: print(x) [ α + 1 2 2α + 1 α + 2]
In [7]: GF = galois.GF(3**2, repr="power") In [8]: x = GF([4, 2, 7, 5]) In [9]: print(x) [α^2 α^4 α^3 α^7]