mpi_array.globale_creation.zeros_like¶
-
mpi_array.globale_creation.
zeros_like
(ary, *args, **kwargs)[source]¶ Return a new zero-initialised array with the same shape and type as a given array.
Parameters: - ary (
mpi_array.globale.gndarray
) – Copy attributes from this array. - dtype (
numpy.dtype
) – Specifies different dtype for the returned array. - order (
'C', 'F', 'A', or 'K'
) – Only'K'
implemented. Overrides the memory layout of the result.'C'
means C-order,'F'
means F-order,'A'
means'F'
if a is Fortran contiguous,'C'
otherwise.'K'
means match the layout ofary
as closely as possible. - subok (
bool
) – Ignored. If True, then the newly created array will use the sub-class type ofary
, otherwise it will be a base-class array. Defaults to True.
Return type: Returns: Array of zero-initialized data with the same shape and type as
ary
.- ary (