array-api
array-api copied to clipboard
RFC document, tooling and other content related to the array API standard
This RFC requests to include a new API in the array API specification for the purpose of computing the projection of a complex number on the Riemann sphere. ## Overview...
Hi, first time contributor, long-time fan. I've been following the development of the Array API and having discussions with my fellow Astropy maintainers about how Astropy's Quantity class can support...
Python's documentation promises that: "The only required property is that objects which compare equal have the same hash value…" However, NumPy dtypes do not follow this requirement. As discussed in...
See for instance https://github.com/numpy/numpy/issues/13797. It might be useful to have a special function for a hermitian transpose, which would be equivalent to `conjugate(matrix_transpose(x))`. The other suggestion is a `.H` operator...
The documentation of special cases in API documentation predates the specification's embrace of reST and GitHub support for mathematical equations in Markdown. As such, special cases use code blocks for...
Previous discussion: https://github.com/data-apis/array-api/issues/97 Resolution was to ignore the case of data-dependent (unknown) dimensionalities. I have a suggestion how to implement it by adding a new function to the API with...
The array API supports Python scalars in arithmetic only, i.e., operations like `x + 1`. For the same readability reasons that supporting scalars in arithmetic is valuable, it would nice...
The array API's [type promotion rules](https://data-apis.org/array-api/latest/API_specification/type_promotion.html#mixing-arrays-with-python-scalars) support mixed scalar/array operations, e.g., `1 + xp.arange(3)`. For Xarray, we would like to be able to figure out the resulting dtype from this...
These are necessary for the test suite.
I'm working on adding array API support in `scipy.stats` (scipy/scipy#20544) and one of the the things I'll need is a `quantile` function. If there is some support for this idea,...