api¶
Utility functions to use Python Array API compatible libraries.
Copied from Scipy
For the context about the Array API see: https://data-apis.org/array-api/latest/purpose_and_scope.html
The SciPy use case of the Array API is described on the following page: https://data-apis.org/array-api/latest/use_cases.html#use-case-scipy
|
Get the array API compatible namespace for the arrays xs. |
|
Returns a list of available devices for the given namespace. |
|
SciPy-specific replacement for |
|
Check if an array has a complex floating-point data type. |
Return the |
|
|
SciPy-specific replacement for |
|
Assert that two arrays are equal. |
|
Assert that all elements of an array are strictly less than another |
|
Broadcast arrays and promote to a common data type. |
|
Copies an array. |
|
Copy the sign of x2 to the magnitude of x1. |
|
Convert a floating-point array to a complex array. |
|
Move an axis to the end of the array. |
|
Return a flattened array. |
|
Return the real part of a complex array or the array itself if it's |
|
Return the sign of each element in the input array. |
|
Take values from an array along an axis at the indices specified. |
|
Compute the vector norm of an array. |