commpy.channelcoding.GF¶
-
class
GF(x, m)¶ Defines a Binary Galois Field of order m, containing n, where n can be a single element or a list of elements within the field.
Parameters: - n (int) – Represents the Galois field element(s).
- m (int) – Specifies the order of the Galois Field.
Returns: x – A Galois Field GF(2m) object.
Return type: int
Examples
>>> from numpy import arange >>> from gfields import GF >>> x = arange(16) >>> m = 4 >>> x = GF(x, m) >>> print x.elements [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15] >>> print x.prim_poly 19
-
__init__(x, m)¶
Methods
__init__(x, m)cosets()Compute the cyclotomic cosets of the Galois field. minpolys()Compute the minimal polynomials for all elements of the Galois field. order()Compute the orders of the Galois field elements. power_to_tuple()Convert Galois field elements from power form to tuple form representation. tuple_to_power()Convert Galois field elements from tuple form to power form representation.