Skip to content

Creates interface for ufunc functions - #5399

Merged
ajpotts merged 2 commits into
Bears-R-Us:mainfrom
drculhane:Closes-5253
Feb 11, 2026
Merged

ajpotts merged 2 commits into
Bears-R-Us:mainfrom
drculhane:Closes-5253

Conversation

@drculhane

@drculhane drculhane commented Feb 10, 2026 •

Copy link
Copy Markdown
Contributor

Also closes #5253.

This creates an interface for functions that fall into numpy's "ufunc" category, enabling the optional use of the "where" and "out" parameters.

Four functions are rewritten to use this interface: ceil, floor, trunc, and arctan2.

Note: Proper handling of "where" and "out" causes problems with alignment_verification tests, as these were written when our handling of those parameters didn't match numpy. So I've also updated the alignment tests for ceil, floor, and trunc, and included a comment that further tests will need updating as the functions themselves are.

@drculhane
drculhane marked this pull request as ready for review February 11, 2026 14:04

@ajpotts ajpotts left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool! Thanks!

Comment thread arkouda/numpy/numeric.py Resolved
Comment thread arkouda/numpy/numeric.py Resolved
Comment thread arkouda/numpy/numeric.py Resolved
Comment thread tests/numpy/numeric_test.py Resolved
@ajpotts
ajpotts merged commit b58bccb into Bears-R-Us:main Feb 11, 2026
19 checks passed
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.

Support integer inputs for ak.floor and ak.ceil (NumPy alignment)

2 participants