Skip to content

ENH: add __array_function__ protocol to polyval2d and polygrid2d #28866

@nunupeke

Description

@nunupeke

Proposed new feature or change:

I use the functions np.polynomial.polynomial.polyval2d and np.polynomial.polynomial.polygrid2d on pint arrays. Pint makes use of the array_function protocol to make the standard numpy function unit-aware. For that purpose I used to add the array_function protocol to the mentioned functions myself by applying array_function_dispatch from numpy.core.overrides. But the entire core module was recently made private so I suspect that this kind of monkey-patching is not supported any longer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    sprintableIssue fits the time-frame and setting of a sprint

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions