22 void casadi_interpn_interpolate(T1* res, casadi_int ndim,
const casadi_int* offset,
const T1* values,
const T1* alpha,
const casadi_int* index,
const casadi_int* corner, T1* coeff, casadi_int m) {
28 for (i=0; i<ndim; ++i) {
29 if (coeff) *coeff++ = c;
35 values += (index[i]+corner[i])*ld*m;
36 ld *= offset[i+1]-offset[i];
39 for (i=0;i<m;++i) res[i] += values[i];
41 for (i=0;i<m;++i) res[i] += c*values[i];