|
tfel
|
structure in charge of computing the cubic spline of a series of collocation points More...
#include </home/runner/work/tfel/tfel/include/TFEL/Math/CubicSpline.hxx>
Classes | |
| struct | PointComparator |
| internal structure to compare collocation points More... | |
Public Member Functions | |
| template<typename AIterator, typename OIterator> | |
| void | setCollocationPoints (AIterator, AIterator, OIterator) |
| template<typename AContainer, typename OContainer> | |
| void | setCollocationPoints (const AContainer &, const OContainer &) |
| ValueType | operator() (const AbscissaType) const |
| result_type< ValueType, AbscissaType, OpMult > | computeIntegral (const AbscissaType, const AbscissaType) const |
| ValueType | computeMeanValue (const AbscissaType, const AbscissaType) const |
| ValueType | getValue (const AbscissaType) const |
| void | getValues (ValueType &, derivative_type< ValueType, AbscissaType > &, const AbscissaType) const |
| void | getValues (ValueType &, derivative_type< ValueType, AbscissaType > &, derivative_type< ValueType, AbscissaType, AbscissaType > &, const AbscissaType) const |
| const auto & | getCollocationPoints () const |
| return the collocation points | |
Protected Types | |
| using | Point = CubicSplineCollocationPoint<AbscissaType, ValueType> |
| a simple alias | |
Protected Member Functions | |
| void | solveTridiagonalLinearSystem (const AbscissaType *const, AbscissaType *const) |
| void | buildInterpolation () |
| build the spline interpolation | |
Protected Attributes | |
| std::vector< Point > | points |
| collocation points | |
structure in charge of computing the cubic spline of a series of collocation points
| AbscissaType | floatting type number used for the computations |
| ValueType | result type |
|
nodiscard |
| [in] | xa | beginning of interval |
| [in] | xb | end of interval |
|
nodiscard |
| [in] | xa | beginning of interval |
| [in] | xb | end of interval |
|
nodiscard |
| [in] | x | : point at which the spline is evaluated |
| void tfel::math::CubicSpline< AbscissaType, ValueType >::getValues | ( | ValueType & | f, |
| derivative_type< ValueType, AbscissaType > & | df, | ||
| const AbscissaType | x ) const |
| [out] | f | : spline value |
| [out] | df | : spline derivative value |
| [in] | x | : point at which the spline is evaluated |
| void tfel::math::CubicSpline< AbscissaType, ValueType >::getValues | ( | ValueType & | f, |
| derivative_type< ValueType, AbscissaType > & | df, | ||
| derivative_type< ValueType, AbscissaType, AbscissaType > & | d2f, | ||
| const AbscissaType | x ) const |
| [out] | f | : spline value |
| [out] | df | : spline derivative value |
| [out] | d2f | : spline second derivative value |
| [in] | x | : point at which the spline is evaluated |
|
nodiscard |
| [in] | x | : point at which the spline is evaluated |
| void tfel::math::CubicSpline< AbscissaType, ValueType >::setCollocationPoints | ( | AIterator | px, |
| AIterator | pxe, | ||
| OIterator | py ) |
| [in] | px | : iterator to the first abscissa |
| [in] | pxe | : iterator past the last abscissa |
| [in] | py | : iterator to the first ordinate |
| void tfel::math::CubicSpline< AbscissaType, ValueType >::setCollocationPoints | ( | const AContainer & | x, |
| const OContainer & | y ) |
| [in] | x | : abscissa |
| [in] | y | : ordinates |
|
protected |
http://en.wikipedia.org/wiki/Tridiagonal_matrix_algorithm n - number of equations c - sup-diagonal (means it is the diagonal above the main diagonal) – indexed from 0..n-2 b - the main diagonal x - the answer