You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support integer inputs for ak.floor and ak.ceil (NumPy alignment) #5253
Support integer inputs for ak.floor and ak.ceil (NumPy alignment)
Summary
ak.floor and ak.ceil currently raise TypeError for integer inputs, while NumPy defines these ufuncs for integer arrays as identity operations (i.e., no-op, returning the same values).
This discrepancy causes failures in NumPy alignment tests and represents a gap between Arkouda and NumPy semantics.
Activity
drculhane commentedon Feb 2, 2026
Good catch. There is another function, round, which also has this issue.
numpy floor and ceil include a dtype parameter, which the corresponding arkouda functions don't, so that will have to be added, too.
numpy round doesn't have that parameter, but it does have a decimal parameter, indicating the number of decimal places to round to.
I'm inclined to fix all of these when addressing this issue, and add new unit tests.
Creates interface for ufunc functions (#5399)