Skip to content

Support (most of) the elementwise functions in the Array API - #22

Open
mhvk wants to merge 2 commits into
astropy:mainfrom
mhvk:array-api-element-wise
Open

Support (most of) the elementwise functions in the Array API#22
mhvk wants to merge 2 commits into
astropy:mainfrom
mhvk:array-api-element-wise

Conversation

@mhvk

@mhvk mhvk commented Dec 30, 2024

Copy link
Copy Markdown
Contributor

Adds supports for ufuncs, and therewith for most of the element-wise functions. Also tests that for array types that support them, we can deal with passing in explicit outputs and with ufunc methods (reduce, reduce_at, at, accumulate).

p.s. This PR is perhaps better not squash-merged.

mhvk added 2 commits December 30, 2024 17:36
Do this via __array_ufunc__, using astropy machinery.  A few functions
are not yet supported as they are not ufuncs.

Relative to astropy Quantity, the main change is to change the output
machinery to take into account that our Quantity is immutable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant