Skip to content

Missing ufuncs: np.divmod and np.positive #8932

Closed
@shoyer

Description

@shoyer

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:

NPY_NO_EXPORT PyNumberMethods array_as_number = {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions