Skip to content

Conversation

@drculhane
Copy link
Contributor

@drculhane drculhane commented Feb 10, 2026

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
Copy link
Contributor

@ajpotts ajpotts left a comment

Choose a reason for hiding this comment

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

Cool! Thanks!

@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