|
Alexandria 2.31.2
SDC-CH common library for the Euclid project
|

Public Member Functions | |
| InterpN (const std::tuple< std::vector< T > > &grid, const NdArray::NdArray< double > &values, bool extrapolate) | |
| double | operator() (const T x) const |
| InterpN (const InterpN &)=default | |
| Copy constructor. | |
| InterpN (InterpN &&)=default | |
| Move constructor. | |
| InterpN (const std::tuple< std::vector< AxisType >... > &grid, const NdArray::NdArray< double > &values, bool extrapolate) | |
| ~InterpN ()=default | |
| double | operator() (AxisType... args) const |
Private Attributes | |
| std::vector< T > | m_knots |
| std::vector< double > | m_values |
| bool | m_extrapolate |
Specialization (and end of the recursion) for a 1-dimensional interpolation.
Definition at line 120 of file GridInterpolation.icpp.
|
inline |
Constructor
| grid | A 1-dimensional grid |
| values | |
| type | |
| extrapolate |
Definition at line 130 of file GridInterpolation.icpp.
References m_extrapolate, m_knots, m_values, Euclid::NdArray::NdArray< T >::shape(), Euclid::NdArray::NdArray< T >::size(), and std::vector< T >::size().
Referenced by InterpN(), and InterpN().

|
default |
|
default |
| Euclid::MathUtils::InterpN< AxisType >::InterpN | ( | const std::tuple< std::vector< AxisType >... > & | grid, |
| const NdArray::NdArray< double > & | values, | ||
| bool | extrapolate ) |
Constructor
| grid | Knots defining the grid |
| values | Grid values |
| extrapolate | If true, values will be extrapolated on continuous dimensions |
|
default |
Destructor
| double Euclid::MathUtils::InterpN< AxisType >::operator() | ( | AxisType... | args | ) | const |
Interpolate the value for the given parameters
|
inline |
Call as a function
| x | Coordinate value |
Definition at line 149 of file GridInterpolation.icpp.
References m_extrapolate, m_knots, and m_values.
|
private |
Definition at line 162 of file GridInterpolation.icpp.
Referenced by InterpN(), and operator()().
|
private |
Definition at line 160 of file GridInterpolation.icpp.
Referenced by InterpN(), and operator()().
|
private |
Definition at line 161 of file GridInterpolation.icpp.
Referenced by InterpN(), and operator()().