Hi @jacobwilliams, thanks for the great work! I was wondering if it would be possible to support multi-dimensional outputs. For now, I think that the API requires to initialize a different interpolator per output, which is inefficient, since it requires to find the grid points multiple times.
One way to implement this would be to declare f as assumed-rank, and then place the interpolation algorithm inside select rank. Obviously, the linear interpolation formula stays the same, and to reduce code duplication you might include a file.
What do you think about this?
Hi @jacobwilliams, thanks for the great work! I was wondering if it would be possible to support multi-dimensional outputs. For now, I think that the API requires to initialize a different interpolator per output, which is inefficient, since it requires to find the grid points multiple times.
One way to implement this would be to declare
fas assumed-rank, and then place the interpolation algorithm insideselect rank. Obviously, the linear interpolation formula stays the same, and to reduce code duplication you mightincludea file.What do you think about this?