/* * File : rt_intrp2flatd.c generated from file * gentablefuncs, Revision: 1.7.4.6 * * Copyright 1994-2003 The MathWorks, Inc. * * */ #include "rtlooksrc.h" /* Function: ================================================== * Abstract: * Flat table look-up of a 2-D column major table. * */ real_T rt_Intrp2Flatd(const int_T * const bpIndex, const int_T numRows, const real_T * const lambda, const real_T * const tableData) { int_T offset = bpIndex[1]; if (lambda[1] >= 1.0) offset++; offset *= numRows; offset += bpIndex[0]; if (lambda[0] >= 1.0) offset++; return(tableData[offset]); } /* [EOF] rt_intrp2flatd.c */