numpy.__array_namespace_info__.capabilities#
method
- __array_namespace_info__.capabilities()[source]#
Return a dictionary of array API library capabilities.
The resulting dictionary has the following keys:
“boolean indexing”: boolean indicating whether an array library supports boolean indexing. Always
Truefor NumPy.“data-dependent shapes”: boolean indicating whether an array library supports data-dependent output shapes. Always
Truefor NumPy.
See
- Returns:
- capabilitiesdict
A dictionary of array API library capabilities.
See also
Examples
>>> info = np.__array_namespace_info__()
>>> info.capabilities()
{'boolean indexing': True,
'data-dependent shapes': True,
'max dimensions': 64}