skcuda.misc.ones¶
-
skcuda.misc.
ones
(shape, dtype, order='C', allocator=<Mock object>)[source]¶ Return an array of the given shape and dtype filled with ones.
Parameters: - shape (tuple) – Array shape.
- dtype (data-type) – Data type for the array.
- order ({'C', 'F'}, optional) – Create array using row-major or column-major format.
- allocator (callable, optional) – Returns an object that represents the memory allocated for the requested array.
Returns: out – Array of ones with the given shape, dtype, and order.
Return type: