-
classmethod galois.FieldArray.Zeros(shape: ShapeLike, dtype: DTypeLike | None =
None) Self Creates an array of all zeros.
- Parameters:¶
- shape: ShapeLike¶
A NumPy-compliant
shapetuple.- dtype: DTypeLike | None =
None¶ The
numpy.dtypeof the array elements. The default isNonewhich represents the smallest unsigned data type for thisFieldArraysubclass (the first element indtypes).
- Returns:¶
An array of zeros.
Examples¶
In [1]: GF = galois.GF(31) In [2]: GF.Zeros((2, 5)) Out[2]: GF([[0, 0, 0, 0, 0], [0, 0, 0, 0, 0]], order=31)