dpnp.ndarray.asnumpy

method

ndarray.asnumpy(order='C')

Copy content of the array into numpy.ndarray instance of the same shape and data type.

Parameters:

order ({None, 'C', 'F', 'A', 'K'}, optional) --

The desired memory layout of the converted array. When order is 'A', it uses 'F' if the array is column-major and uses 'C' otherwise. And when order is 'K', it keeps strides as closely as possible.

Default: 'C'.

Returns:

out -- An instance of numpy.ndarray populated with the array content.

Return type:

numpy.ndarray