cupy.array — CuPy 13.4.1 documentation (original) (raw)

cupy.array(obj, dtype=None, copy=True, order='K', subok=False, ndmin=0, *, blocking=False)[source]#

Creates an array on the current device.

This function currently does not support the subok option.

Parameters:

Returns:

An array on the current device.

Return type:

cupy.ndarray

Note

This method currently does not support subok argument.

Note

If obj is an numpy.ndarray instance that contains big-endian data, this function automatically swaps its byte order to little-endian, which is the NVIDIA and AMD GPU architecture’s native use.