skcuda.misc.ones_like¶
-
skcuda.misc.
ones_like
(a)[source]¶ Return an array of ones with the same shape and type as a given array.
Parameters: a (array_like) – The shape and data type of a determine the corresponding attributes of the returned array. Returns: out – Array of ones with the shape, dtype, and strides of other. Return type: pycuda.gpuarray.GPUArray