A class which implements Lagrange polynomials. More...
Public Member Functions | |
KOKKOS_FUNCTION | Lagrange (int degree, Field< double, IdxRangeInterp, typename Execspace::memory_space > x_nodes_fnodes, IdxRangeInterp idx_range, IdxStepInterp ghost) |
Usual Constructor. | |
KOKKOS_FUNCTION double | evaluate (CoordDimI x_interp) const |
Evaluates the approximated value of a function on a point current values at a known set of interpolation points. | |
A class which implements Lagrange polynomials.
A simple class which provides the possibility to evaluate an interpolation of a function known only over a restricted set of nodes.
|
inline |
Usual Constructor.
[in] | degree | integer which correspond to the degree of interpolation. |
[in] | x_nodes_fnodes | Field of nodes and associated values of the function. |
[in] | idx_range | along interest direction, usedful in periodic case |
[in] | ghost | DiscretVector which gives the number of ghosted points |
KOKKOS_INLINE_FUNCTION double Lagrange< Execspace, GridInterp, BcMin, BcMax >::evaluate | ( | CoordDimI | x_interp | ) | const |
Evaluates the approximated value of a function on a point current values at a known set of interpolation points.
[in] | x_interp | a node where we want to evaluate the function. |