array-api
array-api copied to clipboard
RFC document, tooling and other content related to the array API standard
The spec implies that it should https://data-apis.org/array-api/latest/API_specification/generated/signatures.linear_algebra_functions.vecdot.html#signatures.linear_algebra_functions.vecdot. However, other functions like matmul do not contract along the contracted axis. This came up in the numpy implementation, which is currently wrong,...
It would be useful to have some `gradient` implementation in the spec. Possibly starting with [`np.gradient`]( https://numpy.org/doc/stable/reference/generated/numpy.gradient.html ). Though it is worth noting that `np.gradient` returns separate arrays in a...
Note that an alternative idea discussed earlier was a separate function `get_extension()`, but IIRC that was not considered a good idea. Now that we have module-level `__getattr__`'s, it should not...
Hi 👋 love what's happening here. I'm playing around with stubbing out protocols for common image analysis operations (e.g. scikit-image), and would love to build on what already exists in...
There was a plan to [update NumPy's `asarray`'s `copy` kwarg](https://github.com/numpy/numpy/pull/21913), however, this would mismatch with the `array` one. NumPy was currently aiming for possibly having an enum or maybe `copy="never"`,...
https://data-apis.org/array-api/latest/extensions/generated/signatures.linalg.matrix_rank.html states that the return type should be `float`. Is this correct? If so, why is that? All the frameworks : `torch`, `TensorFlow` , `Jax` return an `int` type or...
This PR focuses on adding the FFT as an extension to the array spec. The current APIs added in this PR are: - [x] Standard FFT: fft, ifft, fftn, ifftn...
We're very happy to see progress in getting the array API standardized -- obviously a monumental undertaking when all is considered. We've been using backend-agnostic numpy-style code for over a...
This RFC proposes adding data type inspection utilities to the array API specification. ## Overview Currently, the array API specification requires that conforming implementations provide a specified set of data...
This issue is created as a continuation of [numpy#21135](https://github.com/numpy/numpy/issues/21135), as a request from [mattip](https://github.com/mattip). The idea is to discuss between the array API standard and the NumPy communities how to...