cupynumeric.ones_like# cupynumeric.ones_like( a: ndarray, dtype: npt.DTypeLike | None = None, shape: NdShapeLike | None = None, ) → ndarray# 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 define these same attributes of the returned array. dtype (data-type, optional) – Overrides the data type of the result. shape (int or tuple[int], optional) – Overrides the shape of the result. Returns: out – Array of ones with the same shape and type as a. Return type: ndarray See also numpy.ones_like Availability: Multiple GPUs, Multiple CPUs