mpi_array.globale_creation.empty_like¶
-
mpi_array.globale_creation.empty_like(ary, dtype=None, order='K', subok=True, **kwargs)[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. - 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 ofaryas 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: type(ary)Returns: Array of uninitialized (arbitrary) data with the same shape and type as
ary.- ary (