array-api
array-api copied to clipboard
RFC document, tooling and other content related to the array API standard
Based on recent discussion, current `astype` behaves as if `casting` is set `"unsafe"`. It may be worthwhile to add this argument as default `"unsafe"` while also allowing it to be...
This PR - adds a specification for `take`, an API for returning elements of an array along a specified axis. This API was initially proposed in https://github.com/data-apis/array-api/issues/177. - supports only...
This RFC is a follow-on proposal to https://github.com/data-apis/array-api/issues/402 and seeks to propose a process for tracking array API test suite compliance. ## Overview Similar to the motivations for https://github.com/data-apis/array-api/issues/402, currently,...
This PR: - adds complex number support to `astype`. As `astype` generally supports copying an array to _any_ specified data type irrespective of type promotion rules, no exception to general...
## Proposal Add APIs for getting and setting elements via a list of indices. ## Motivation Currently, the array API specification does not provide a direct means of extracting and...
When introducing complex dtypes and updating/introducing related functions (#373), I wonder if we'd want to introduce a `cinfo()` function ala `iinfo()`/`finfo()`. What would its resulting info object look like? I...
When wrapping other Array libraries (as happens in Dask or XArray), there is a need to determine what the result of an operation may look like in terms of its...
This RFC proposes to add a new API, `abs2`, to the standard for computing the square of the absolute value. For complex numbers, the absolute value is the Euclidean norm...
Currently `nonzero` is defined in the specification, but `argwhere` is not. PR ( https://github.com/data-apis/array-api/pull/23 ) mentions `argwhere`, but it is not currently included. There was some discussion starting with comment...
This PR - adds complex number support to `sqrt` by documenting special cases. By convention, the square root has a single branch cut, which is defined as the real interval...