mpi_array.locale.empty_like¶
-
mpi_array.locale.empty_like(ary, dtype=None)[source]¶ Return a new array with the same shape and type as a given array.
Parameters: - ary (
numpy.ndarray) – Copy attributes from this array. - dtype (
numpy.dtype) – Specifies different dtype for the returned array.
Return type: type(ary)Returns: Array of uninitialized (arbitrary) data with the same shape and type as
a.- ary (