DUECA/DUSIME
|
Interpolation data holder, for 2d interpolation tables. More...
#include <InterpTable2.hxx>
Public Member Functions | |
InterpTable2 (const I &i1, const I &i2, const T *data) | |
Constructor with an array pointer as input, by far the fastest constructor. | |
const I & | getIndex1 () |
Access the first index, normally for getting fraction/index values. | |
const I & | getIndex2 () |
Access the second index, normally for getting fraction/index values. | |
const T & | getValue (int i1, int i2) const |
Get node values. | |
Interpolation data holder, for 2d interpolation tables.
Either reads data from file, or uses a static array initialisation.
Constructor with an array pointer as input, by far the fastest constructor.
i1 | Index object for the first index of the table. |
i2 | Index object for the second index of the table. |
data | Pointer to (permanent!) data array with the data for the table. This data is laid out in row-mayor order, in other words, the second index is the fast- running one (e.g. d0_1, d0_2, d0_3, d1_1, d1_2, d1_3 etc. |