Gyselalib++
 
Loading...
Searching...
No Matches
Lagrange< Execspace, GridInterp, BcMin, BcMax > Class Template Reference

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.
 

Detailed Description

template<class Execspace, class GridInterp, BCond BcMin, BCond BcMax>
class Lagrange< Execspace, GridInterp, BcMin, BcMax >

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.

Constructor & Destructor Documentation

◆ Lagrange()

template<class Execspace , class GridInterp , BCond BcMin, BCond BcMax>
KOKKOS_FUNCTION Lagrange< Execspace, GridInterp, BcMin, BcMax >::Lagrange ( int  degree,
Field< double, IdxRangeInterp, typename Execspace::memory_space >  x_nodes_fnodes,
IdxRangeInterp  idx_range,
IdxStepInterp  ghost 
)
inline

Usual Constructor.

Parameters
[in]degreeinteger which correspond to the degree of interpolation.
[in]x_nodes_fnodesField of nodes and associated values of the function.
[in]idx_rangealong interest direction, usedful in periodic case
[in]ghostDiscretVector which gives the number of ghosted points

Member Function Documentation

◆ evaluate()

template<typename Execspace , class GridInterp , BCond BcMin, BCond BcMax>
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.

Parameters
[in]x_interpa node where we want to evaluate the function.
Returns
The evaluation of Lagrange interpolation at the point x_intercept.

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