ones¶
-
hipecta.
ones
(shape, dtype=<class 'numpy.float64'>)[source]¶ Return a new array, memory aligned, of given shape and type, filled with ones.
- shape : int or sequence of ints
- Shape of the new array, e.g., (2, 3) or 2.
- dtype : data-type, optional
- The desired data-type for the array, default: numpy.float32
Array of ones with the given shape, dtype.