- galois.FieldArray.field_norm() FieldArray
Computes the field norm
of the elements of .- Returns:¶
The field norm of
in the prime subfield .
Notes
The
self
array is over the extension field . The field norm of is over the subfield . In other words, .For finite fields, since
is a Galois extension of , the field norm of is defined as a product of the Galois conjugates of .References
Examples
Compute the field norm of the elements of
.In [1]: GF = galois.GF(3**2) In [2]: x = GF.elements; x Out[2]: GF([0, 1, 2, 3, 4, 5, 6, 7, 8], order=3^2) In [3]: y = x.field_norm(); y Out[3]: GF([0, 1, 1, 2, 1, 2, 2, 2, 1], order=3)
In [4]: GF = galois.GF(3**2, repr="poly") In [5]: x = GF.elements; x Out[5]: GF([ 0, 1, 2, α, α + 1, α + 2, 2α, 2α + 1, 2α + 2], order=3^2) In [6]: y = x.field_norm(); y Out[6]: GF([0, 1, 1, 2, 1, 2, 2, 2, 1], order=3)
In [7]: GF = galois.GF(3**2, repr="power") In [8]: x = GF.elements; x Out[8]: GF([ 0, 1, α^4, α, α^2, α^7, α^5, α^3, α^6], order=3^2) In [9]: y = x.field_norm(); y Out[9]: GF([0, 1, 1, 2, 1, 2, 2, 2, 1], order=3)