classmethod galois.Array.Ones(shape: ShapeLike, dtype: DTypeLike | None = None) → Self Creates an array of all ones. Parameters:¶ shape: ShapeLike¶A NumPy-compliant shape tuple. dtype: DTypeLike | None = None¶The numpy.dtype of the array elements. The default is None which represents the smallest unsigned data type for this Array subclass (the first element in dtypes). Returns:¶ An array of ones.