DUECA/DUSIME
Loading...
Searching...
No Matches
Public Member Functions | List of all members
dueca::InterpTable2< T, I > Class Template Reference

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 IgetIndex1 ()
 Access the first index, normally for getting fraction/index values.
 
const IgetIndex2 ()
 Access the second index, normally for getting fraction/index values.
 
const TgetValue (int i1, int i2) const
 Get node values.
 

Detailed Description

template<class T, class I>
class dueca::InterpTable2< T, I >

Interpolation data holder, for 2d interpolation tables.

Either reads data from file, or uses a static array initialisation.

Constructor & Destructor Documentation

◆ InterpTable2()

template<class T , class I >
dueca::InterpTable2< T, I >::InterpTable2 ( const I & i1,
const I & i2,
const T * data )

Constructor with an array pointer as input, by far the fastest constructor.

Parameters
i1Index object for the first index of the table.
i2Index object for the second index of the table.
dataPointer 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.

The documentation for this class was generated from the following file: