/* * File: rt_looklinnbinxsd.c generated from file * gentablefuncs, Revision: 1.7.4.6 * * Copyright 1994-2003 The MathWorks, Inc. * * * Abstract: * N-D column-major table look-up * operating on real_T with: * * - Linear interpolation * - Linear extrapolation * - Binary breakpoint search * - Uses previous index search result */ #include "rtlooksrc.h" real_T rt_LookLinNBinXSd(int_T numDims, const real_T * u, rt_LUTnWork * TWork) { real_T * const bpLambda = TWork->bpLambda; int_T * const bpIndex = TWork->bpIndex; const int_T * const maxIndex = TWork->maxIndex; int_T k; for(k=0; k < numDims; k++) { const real_T * const bpData = ((const real_T * const *)TWork->bpDataSet)[k]; bpIndex[k] = rt_PLookBinXd(u[k], &bpLambda[k], bpData, maxIndex[k], bpIndex[k]); } return(rt_IntrpNLind(numDims-1, 0, TWork)); } /* [EOF] rt_looklinnbinxsd.c */