MATLAB: GriddedInterpolant not a built-In Functions on a GPU

gpugriddedinterpolant

To make my code faster I have implemented "griddedInterpolant " instead of "interp1". Now I have a GPU but "griddedInterpolant" does not support gpu arrays, whereas "interp1" does. If this is the case I have to rewrite my code, using interp1. Is there a solution?

Best Answer

I'm not sure what you're asking, but if you're asking "am I right that I have to rewrite my code?" then yes, you are right.