- array.__array_namespace__(*, api_version: Optional[str] = None) Any ¶
Returns an object that has all the array API functions on it.
self (array) – array instance.
api_version (Optional[str]) – string representing the version of the array API specification to be returned, in
'YYYY.MM'form, for example,
'2020.10'. If it is
None, it should return the namespace corresponding to latest version of the array API specification. If the given version is invalid or not implemented for the given module, an error should be raised. Default:
out (Any) – 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.