- class galois.Array(numpy.ndarray)
An abstract
ndarray
subclass over a Galois field or Galois ring.Abstract
Array
is an abstract base class forFieldArray
and cannot be instantiated directly.Constructors¶
- classmethod Range(start: ElementLike, stop, ...) Self
Creates a 1-D array with a range of elements.
Methods¶
- classmethod repr(...) Generator[None, None, None]
Sets the element representation for all arrays from this
FieldArray
subclass.
Properties¶
- class property characteristic : int
The characteristic \(p\) of the Galois field \(\mathrm{GF}(p^m)\) or \(p^e\) of the Galois ring \(\mathrm{GR}(p^e, m)\).
- class property default_ufunc_mode : Literal[jit - lookup] | typing.Literal[jit - calculate] | typing.Literal[python - calculate]
The default compilation mode of the Galois field or Galois ring.
- class property degree : int
The degree \(m\) of the Galois field \(\mathrm{GF}(p^m)\) or Galois ring \(\mathrm{GR}(p^e, m)\).
- class property dtypes : list[np.dtype]
List of valid integer
numpy.dtype
values that are compatible with this Galois field or Galois ring.
- class property element_repr : Literal[int] | Literal[poly] | Literal[power]
The current element representation of the Galois field or Galois ring.
- class property irreducible_poly : Poly
The irreducible polynomial of the Galois field or Galois ring.
- class property order : int
The order \(p^m\) of the Galois field \(\mathrm{GF}(p^m)\) or \(p^{em}\) of the Galois ring \(\mathrm{GR}(p^e, m)\).
- class property primitive_element : Array
A primitive element of the Galois field or Galois ring.
- class property ufunc_mode : Literal[jit - lookup] | typing.Literal[jit - calculate] | typing.Literal[python - calculate]
The current compilation mode of the Galois field or Galois ring.
- class property ufunc_modes : list[str]
All supported compilation modes of the Galois field or Galois ring.