mpi_array.globale_creation.full_like¶
-
mpi_array.globale_creation.
full_like
(ary, fill_value, *args, **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. - fill_value (scalar) – Fill value.
- 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: type(ary)
Returns: Array of uninitialized (arbitrary) data with the same shape and type as
ary
.- ary (