Get the array API inspection namespace for NumPy.
The array API inspection namespace defines the following functions:
See https://data-apis.org/array-api/latest/API_specification/inspection.html for more details.
The array API inspection namespace for NumPy.
>>> info = np.__array_namespace_info__()
>>> info.default_dtypes()
{'real floating': numpy.float64,
'complex floating': numpy.complex128,
'integral': numpy.int64,
'indexing': numpy.int64}
Return a dictionary of array API library capabilities. | |
The default device used for new NumPy arrays. | |
| The default data types used for new NumPy arrays. |
| The devices supported by NumPy. |
| The array API data types supported by NumPy. |
© 2005–2024 NumPy Developers
Licensed under the 3-clause BSD License.
https://numpy.org/doc/2.4/reference/generated/numpy.__array_namespace_info__.html