- 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
of the Galois field or of the Galois ring .
- class property default_ufunc_mode : 'jit-lookup' | 'jit-calculate' | 'python-calculate'
The default compilation mode of the Galois field or Galois ring.
- class property dtypes : list[numpy.dtype]
List of valid integer
numpy.dtype
values that are compatible with this Galois field or Galois ring.
- class property element_repr : 'int' | 'poly' | '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 primitive_element : Array
A primitive element of the Galois field or Galois ring.
- class property ufunc_mode : 'jit-lookup' | 'jit-calculate' | '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.