Multi-Dimensional Array (ndarray)
cupy.ndarray is the CuPy counterpart of NumPy
It provides an intuitive interface for a fixed-size multidimensional array which resides
in a CUDA device.
For the basic concept of
ndarrays, please refer to the NumPy documentation.
Conversion to/from NumPy arrays
numpy.ndarray are not implicitly convertible to each other.
That means, NumPy functions cannot take
cupy.ndarrays as inputs, and vice versa.
Note that converting between
numpy.ndarray incurs data transfer between
the host (CPU) device and the GPU device, which is costly in terms of performance.
|Creates an array on the current device.
|Converts an object to array.
|Returns an array on the host memory from an arbitrary source array.