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
Thanks so much for sharing this, awesome! I am looking for faster solutions myself. I tried with numba, and failed, and I tried your approach, and it is not faster either.
I think you have to be careful when stating
A faster 3D interpolation to replace scipy.interpolate.RegularGridInterpolator()
In your example you have a massive grid, and in this you interpolate one point. In this case it is indeed possible to achieve faster versions than the SciPy version, as SciPy has some overhead to set it up.
However, instead of your example:
x0, y0, z0 = (1.1,0.25, 7.5)
how about if I want to interpolate not one point, but for an even denser grid, hence
I'd also be interested in implementing this code, but I've found RegularGridInterpolator to actually be 5% faster when working with a 162x162x101 grid and ~2.6 million point calculations. I'm on SciPy 1.4.1.
Hi @jglaser!
Thanks so much for sharing this, awesome! I am looking for faster solutions myself. I tried with numba, and failed, and I tried your approach, and it is not faster either.
I think you have to be careful when stating
In your example you have a massive grid, and in this you interpolate one point. In this case it is indeed possible to achieve faster versions than the SciPy version, as SciPy has some overhead to set it up.
However, instead of your example:
how about if I want to interpolate not one point, but for an even denser grid, hence
In SciPy I can do
But your function only accepts size-1 arrays, so I have to loop over it which will be much slower for five million points.
It is not really an issue, I was just interested in your opinion as you worked on improving/speeding-up
RegularGridInterpolator
.The text was updated successfully, but these errors were encountered: