dpnp.ndarray.__array_namespace__

method

ndarray.__array_namespace__(*, api_version=None)

Return array namespace, member functions of which implement data API.

Parameters:
api_version{None, str}, optional

Request namespace compliant with given version of array API. If None, namespace for the most recent supported version is returned.

Default: None.

Returns:
outany

An object representing the array API namespace. It should have every top-level function defined in the specification as an attribute. It may contain other public names as well, but it is recommended to only include those names that are part of the specification.