cunumeric.zeros_like#

cunumeric.zeros_like(a, dtype=None)#

Return an array of zeros 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.

Returns

out – Array of zeros with the same shape and type as a.

Return type

ndarray

See also

numpy.zeros_like

Availability

Multiple GPUs, Multiple CPUs