Right. Given the math you posted above, you will likely be better off representing it as an array-of-arrays. (In particular the fact that it’s 3-dimensional is encoded statically, which often allows for some efficiencies.) If you must store it as a 2d array, try itp = interpolate((1:3, agrid,), data, (NoInterp(), Gridded(Linear())))
.
3 Likes