-
-
Notifications
You must be signed in to change notification settings - Fork 12.2k
Missing ufuncs: np.divmod and np.positive #8932
Copy link
Copy link
Closed
Description
These are not terribly useful, but would be nice to have for completeness, so we can implement every binary operation between arrays by calling __array_ufunc__ (e.g., for NDArrayOperatorsMixin, charris#19).
Currently ndarray implements __divmod__ and __pos__ in terms of other helper functions that aren't exposed in the API:
numpy/numpy/core/src/multiarray/number.c
Line 1120 in f368286
| NPY_NO_EXPORT PyNumberMethods array_as_number = { |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels