-
Notifications
You must be signed in to change notification settings - Fork 10
ENH: new function interp
#193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
np.interp
analognp.interp
analog
first bit of due diligence: https://github.com/data-apis/array-api/issues?q=interp is blank |
That definitely won't fly as part of the standard. |
The NumPy implementation is in C at https://github.com/numpy/numpy/blob/c23886c226012a50da11066d3be98fd94e571101/numpy/_core/src/multiarray/compiled_base.c#L552-L719 |
Linear interpolation is certainly possible to write in pure python, here's one implementation (most likely, quite overengineered): https://github.com/scipy/scipy/blob/v1.15.2/scipy/interpolate/_interpolate.py#L457 One |
This sounds like a perfect candidate for a Python implementation in array-api-extra, then, for as long as https://scipy.github.io/devdocs/tutorial/interpolate/1D.html#piecewise-linear-interpolation continues to direct to NumPy. |
np.interp
analoginterp
next question: would |
IMO, yes.
The ecosystem is already too crowded with variant functions for linear interpolation, which are almost but not completely unlike each other. |
suggested at scipy/scipy#22343 (comment)
The text was updated successfully, but these errors were encountered: