numpy.empty_like()
numpy.empty_like
-
numpy.empty_like(a, dtype=None, order='K', subok=True)
-
Return a new array with the same shape and type as a given array.
Parameters: a : array_like
The shape and data-type of
a
define these same attributes of the returned array.dtype : data-type, optional
Overrides the data type of the result.
New in version 1.6.0.
order : {‘C’, ‘F’, ‘A’, or ‘K’}, optional
Overrides the memory layout of the result. ‘C’ means C-order, ‘F’ means F-order, ‘A’ means ‘F’ if
a
is For