cunumeric.ones_like#
- cunumeric.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:
- Returns:
out – Array of ones with the same shape and type as a.
- Return type:
See also
- Availability:
Multiple GPUs, Multiple CPUs