IFEM  90A354
Public Member Functions | Private Attributes | List of all members
Lagrange1D Class Reference

Class representing 1D Lagrange polynomials. More...

Collaboration diagram for Lagrange1D:
Collaboration graph
[legend]

Public Member Functions

 Lagrange1D (const RealArray &p)
 Constructor initializing the reference to natural coordinates. More...
 
bool eval (int polnum, double xi, double &retval, bool deriv=false) const
 Evaluates a 1D Lagrange polynomial or its derivatives. More...
 

Private Attributes

const RealArraypoints
 Natural coordinates of the interpolation points.
 

Detailed Description

Class representing 1D Lagrange polynomials.

Constructor & Destructor Documentation

◆ Lagrange1D()

Lagrange1D::Lagrange1D ( const RealArray p)
inlineexplicit

Constructor initializing the reference to natural coordinates.

Parameters
[in]pNatural interpolation point coordinates in range [-1,1]

Member Function Documentation

◆ eval()

bool Lagrange1D::eval ( int  polnum,
double  xi,
double &  retval,
bool  deriv = false 
) const
inline

Evaluates a 1D Lagrange polynomial or its derivatives.

Parameters
[in]polnumWhich polynomial of the basis to evaluate
[in]xiNatural coordinate of the evaluation point
[out]retvalThe computed polynomial value
[in]derivIf true, evaluate the first derivatives

References points.

Referenced by Lagrange::computeBasis().


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