Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NumPy functions #61

Closed
jpivarski opened this issue Jan 14, 2020 · 1 comment
Closed

NumPy functions #61

jpivarski opened this issue Jan 14, 2020 · 1 comment
Assignees
Labels
feature New feature or request

Comments

@jpivarski
Copy link
Member

Also known as NEP 18.

@jpivarski jpivarski self-assigned this Jan 14, 2020
@jpivarski jpivarski added the feature New feature or request label Jan 14, 2020
@jpivarski
Copy link
Member Author

Done in PR #89. ak.wherenp.where is the first demonstrating example.

jpivarski added a commit that referenced this issue Jan 24, 2020
NumPy ufunc and other function overloading works. So does customizations for types, demonstrated by string equality.

* [WIP] Address issues #88 and #61 with more complete tests.

* Rename _npufunc to _npfunctions and get started.

* OptionType and ListType/RegularType properly mix. Fixes #88.

* Remove var-length subarray == 1 broadcasting rule.

* [skip ci] Working on left and right broadcasting.

* Back to a working state before wrapping one extra level.

* All the explicit broadcasting works.

* Implicit-right works; need to get implicit-left working.

* Left and right broadcasting both work.

* Cleaned up debugging code.

* Fixed Record.__str__.

* Records broadcast correctly.

* And scalar + scalar.

* Removed debugging code.

* Add stubs for the NEP18 and __array__ protocols.

* Wrote but have not tested tonumpy.

* Testing tonumpy.

* Testing tonumpy; done through unions and options.

* Array.__array__ has been implemented.

* Implemented __array_function__ (it works) and added a stub for ak.where.

* Start on ak.where.

* awkward1.where(condition, x, y) works (and is aliased to numpy.where in NumPy 1.17 and above).

* Fix two Python 2.7 errors.

* Framework for ufunc overrides.

* Cheezy implementation for string_equal, just to make the point.
chrisburr added a commit to chrisburr/awkward-feedstock that referenced this issue Dec 19, 2020
chrisburr added a commit to chrisburr/awkward-feedstock that referenced this issue Dec 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant