array-api
array-api copied to clipboard
RFC document, tooling and other content related to the array API standard
We use [RFC 2119](https://datatracker.ietf.org/doc/html/rfc2119) for words like "should" and "must" in the standard. But many people are confused by this and think that "should" restrictions are actually "must" restrictions. This...
Resolves https://github.com/data-apis/array-api/issues/383
In trying to adapt `xarray` to `numpy>=2` (and thus switching testing code from `numpy.array_api` to `array-api-strict`), I noticed that the array API does not require the `nbytes` property on arrays,...
This PR - resolves https://github.com/data-apis/array-api/issues/784 by adding `diff` to the specification. - restricts portable behavior for `prepend` and `append` to arrays. While NumPy and others support scalars (a common use...
This RFC proposes the addition of a new API in the array API specification for computing the n-th forward difference along a specified dimension. ## Overview Based on array comparison...
One-hot is a very common array creation function in machine learning. It might be worth considering its addition. Various implementations have different semantics: * [pytorch](https://pytorch.org/docs/stable/generated/torch.nn.functional.one_hot.html#torch.nn.functional.one_hot) (Optionally infers the number of...
Hello all! I raised this issue on array-api-compat earlier (https://github.com/data-apis/array-api-compat/issues/105), but I think it might be more properly directed here. In the array API, `expand_dims` supports only a single axis...
## Overview The concept of strides has been raised several times since the beginning of the Consortium. This history was summarized in https://github.com/data-apis/array-api/issues/641. In short, because several array libraries don't...
## Overview The handling of subnormal numbers has come up a few times since the beginning of the Consortium: - https://github.com/data-apis/array-api/issues/131 - https://github.com/data-apis/array-api/issues/339 - https://github.com/data-apis/array-api/pull/341 - https://github.com/data-apis/array-api/pull/703 and is more...
Recently in array-api-strict, I [accidentally disabled iteration on 1-D arrays](https://github.com/data-apis/array-api-strict/pull/48). This [broke a lot of code in SciPy](https://github.com/scipy/scipy/pull/21074). I've since reverted the change (array-api-strict disallows iteration on >1-D arrays but...