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 ufuncs #60

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

NumPy ufuncs #60

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 13.

@jpivarski
Copy link
Member Author

Finished in PR #86.

jpivarski added a commit that referenced this issue Jan 21, 2020
Implemented list-broadcasting in ufunc-handling, but there are no standalone broadcasting functions. It may be that they're not really needed after all, so close #66 for now.

* [WIP] For issue #60, NEP 13: allow NumPy ufuncs to be called on ak.Array

* Rename and split namespace -> classes and functions (LISP-2 style).

* Minimal example of a jagged ufunc works.

* Stubs to handle all array types in NEP13.

* Implemented and tested NEP13 for EmptyArray.

* Implemented and tested NEP13 for IndexedArray (not IndexedOffsetArray).

* Implemented and tested NEP13 for IndexedOptionArray.

* NumpyArray::regularize_shape for ensuring that we can work with RegularArrays at all levels.

* RegularArray broadcasting works.

* Better unwrapping.

* [skip ci] Half-done with ufunc for lists: compact_offsets64.

* [skip ci] Two-thirds-done with ufunc for lists: stubs for broadcast_tooffsets.

* [skip ci] Three-quarters-done with ufunc for lists: stubs for broadcast_tooffsets.

* [skip ci] Three-quarters-done with ufunc for lists: working on broadcast_tooffsets.

* [skip ci] Switch computers.

* Basic cases for broadcast_tooffsets work, but RegularArray of 1 (broadcasting non-jagged -> jagged) does not.

* List-broadcasting works in all cases.

* Union-combining works in all cases.

* Record-combining works.
ianna added a commit to ianna/awkward that referenced this issue Sep 10, 2024
* move to local branch

* fix array_api import at test_spec_elementwise_functions.py

* adding _wrapper in ceil function at _spec_elementwise_functions.py

* implementing a wrapper to fix test errors

* fixing import, trying ceil & floor w\o wrapper

* pre-commit fixes

* reverting wrapper removal in floor and ceil

* fixing lower bound in the same PR

* fixing test errors for numpy 1.22

* skip wrapping of dtype in numpy 1

* adding helper file & floor, ceil tests for numpy 1 changes

* pre-commit changes

* fix: cleanup

* fix: prettyprint

* fix: pin numpy to a stable version for now

* revert changes

* fix: fix to numpy 2.0 stable version

* fix: ensure compatibility with numpy 2.0.0

* fix: pre-commit

* fix: numpy version

---------

Co-authored-by: ohrechykha <[email protected]>
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