array-api
array-api copied to clipboard
RFC document, tooling and other content related to the array API standard
The specs for [fftfreq](https://data-apis.org/array-api/draft/extensions/generated/array_api.fft.fftfreq.html#array_api.fft.fftfreq) and [rfftfreq](https://data-apis.org/array-api/draft/extensions/generated/array_api.fft.rfftfreq.html#array_api.fft.rfftfreq) say "The returned array must have a real-valued floating-point data type determined by [Type Promotion Rules](https://data-apis.org/array-api/draft/API_specification/type_promotion.html#type-promotion)." But there is no type promotion here, since...
# Background Some colleagues and me were doing some work on `sparse` when we stumbled onto a limitation of the current Array API Standard, and @kgryte was kind enough to...
In some of my numerical codes, I have a class `Indentity()` that represents cheap identity matrices. To make it work with things like `result_type`, I assign it the "lowest possible"...
For devices that have different capabilities (support for float64/float16 may or may not be present), the type promotion graph adopted by array-API must be different. Functions `xp.can_cast` ([ref](https://data-apis.org/array-api/latest/API_specification/generated/array_api.can_cast.html)) and `xp.result_type`...
In https://github.com/data-apis/array-api/issues/640, we proposed adding a unified inspection API namespace, and, in that proposal, we included support for querying array library capabilities. That RFC includes two capabilities: - **data_dependent_shapes** -...
Currently I don't see a way to implement einsum or batched matmul using the standard. There is a way with explicit loop, but that does not count. Some ways this...
The purpose of this issue is to identify and track various maintenance tasks which have accumulated concerning specification organization and development. ### Remaining tasks - [ ] Migrate special cases...
In addition to the already available implementations of the array api I think it could be interesting to have a lazy / meta implementation of the standard. What I mean...
Continuing from https://github.com/data-apis/array-api/issues/584, I've done a quick refactor of the array (and dtype) objects to make them typing Protocols. @rgommers, I agree that making Array generic wrt the dtype is...
numpy provides an indirect way to compute the indices of the smallest (or largest) values of an array using: [numpy.argpartition](https://numpy.org/doc/stable/reference/generated/numpy.argpartition.html). There is also a proposal to provide a higher level...