Array API Compliant Object#

Note

cupy.array_api will be removed in CuPy v14 because its NumPy counterpart numpy.array_api has been removed. The root module cupy.* is now compatible with the Array API specification as it mirrors the NumPy v2 API. Use the Array API compatibility library to develop applications compatible with various array libraries, including CuPy, NumPy, and PyTorch.

Array is a wrapper class built upon cupy.ndarray to enforce strict compliance with the array API standard. See the documentation for detail.

This object should not be constructed directly. Rather, use one of the creation functions, such as cupy.array_api.asarray().

Array(*args, **kwargs)

n-d array object for the array API namespace.