SG++-Doxygen-Documentation
sgpp::base::PolyClenshawCurtisBasis< LT, IT > Class Template Reference

Polynomial basis functions. More...

#include <PolyClenshawCurtisBasis.hpp>

Inheritance diagram for sgpp::base::PolyClenshawCurtisBasis< LT, IT >:
sgpp::base::Basis< LT, IT >

Public Member Functions

double eval (LT level, IT index, double p) override
 Evaluate the basis function with given level and index. More...
 
double evalBasis (LT level, IT index, double p)
 Evaluate a basis function. More...
 
double evalDx (LT level, IT index, double x)
 
double evalHierToTop (LT level, IT index, DataVector &coeffs, double pos)
 Evaluates all the hierarchical ancestors of the node defined by level and index. More...
 
size_t getDegree () const override
 Returns the polynomial degree of the basis. More...
 
double getIntegral (LT level, IT index) override
 returns the integal of the current basis function More...
 
 PolyClenshawCurtisBasis (size_t degree)
 Constructor. More...
 
 ~PolyClenshawCurtisBasis () override
 Destructor. More...
 
- Public Member Functions inherited from sgpp::base::Basis< LT, IT >
virtual ~Basis ()
 Destructor. More...
 

Protected Attributes

ClenshawCurtisTableclenshawCurtisTable
 reference to the Clenshaw-Curtis cache table More...
 
size_t degree
 the polynom's max degree More...
 
std::vector< int > idxtable
 

Detailed Description

template<class LT, class IT>
class sgpp::base::PolyClenshawCurtisBasis< LT, IT >

Polynomial basis functions.

Version
$HEAD$

Constructor & Destructor Documentation

◆ PolyClenshawCurtisBasis()

template<class LT, class IT>
sgpp::base::PolyClenshawCurtisBasis< LT, IT >::PolyClenshawCurtisBasis ( size_t  degree)
inlineexplicit

Constructor.

Parameters
degreethe polynom's max. degree

◆ ~PolyClenshawCurtisBasis()

template<class LT, class IT>
sgpp::base::PolyClenshawCurtisBasis< LT, IT >::~PolyClenshawCurtisBasis ( )
inlineoverride

Destructor.

Member Function Documentation

◆ eval()

◆ evalBasis()

template<class LT, class IT>
double sgpp::base::PolyClenshawCurtisBasis< LT, IT >::evalBasis ( LT  level,
IT  index,
double  p 
)
inline

Evaluate a basis function.

Has a dependence on the absolute position of grid point and support.

We compute the roots in units of h = grid spacing at level l = 2 ** -l.

Due to limited polynomial degree, we compute the roots of the Lagrange polynomial bottom up.

Referenced by sgpp::base::PolyClenshawCurtisBasis< unsigned int, unsigned int >::eval().

◆ evalDx()

template<class LT, class IT>
double sgpp::base::PolyClenshawCurtisBasis< LT, IT >::evalDx ( LT  level,
IT  index,
double  x 
)
inline

◆ evalHierToTop()

template<class LT, class IT>
double sgpp::base::PolyClenshawCurtisBasis< LT, IT >::evalHierToTop ( LT  level,
IT  index,
DataVector coeffs,
double  pos 
)
inline

Evaluates all the hierarchical ancestors of the node defined by level and index.

NOTE: It does not evaluate the current node itself.

Parameters
level
index
coeffs
pos
Returns

Referenced by sgpp::base::DehierarchisationPolyClenshawCurtis::rec(), and sgpp::base::HierarchisationPolyClenshawCurtis::rec().

◆ getDegree()

template<class LT, class IT>
size_t sgpp::base::PolyClenshawCurtisBasis< LT, IT >::getDegree ( ) const
inlineoverridevirtual

◆ getIntegral()

template<class LT, class IT>
double sgpp::base::PolyClenshawCurtisBasis< LT, IT >::getIntegral ( LT  level,
IT  index 
)
inlineoverridevirtual

Member Data Documentation

◆ clenshawCurtisTable

◆ degree

◆ idxtable


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