mpi_array.locale.zeros_like

mpi_array.locale.zeros_like(ary, *args, **kwargs)[source]

Return a new zero-initialised array with the same shape and type as a given array.

Parameters:
  • ary (LndarrayProxy) – Copy attributes from this array.
  • dtype (numpy.dtype) – Specifies different dtype for the returned array.
Return type:

LndarrayProxy

Returns:

Array of zero-initialized data with the same shape and type as ary.