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

Fundamental spline basis on Noboundary grids. More...

#include <FundamentalSplineBasis.hpp>

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

Public Member Functions

double eval (LT l, IT i, double x) override
 
double evalDx (LT l, IT i, double x)
 
double evalDxDx (LT l, IT i, double x)
 
 FundamentalSplineBasis ()
 Default constructor. More...
 
 FundamentalSplineBasis (size_t degree)
 Constructor. More...
 
size_t getDegree () const override
 
double getIntegral (LT l, IT i) override
 
 ~FundamentalSplineBasis () override
 Destructor. More...
 
- Public Member Functions inherited from sgpp::base::Basis< LT, IT >
virtual ~Basis ()
 Destructor. More...
 

Protected Attributes

BsplineBasis< LT, IT > bsplineBasis
 B-spline basis. More...
 
std::vector< double > coefficients
 B-spline coefficients. More...
 
DataVector coordinates
 coordinates and weights for calculating integrals More...
 
bool integrationInitialized = false
 
DataVector weights
 

Detailed Description

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

Fundamental spline basis on Noboundary grids.

Constructor & Destructor Documentation

template<class LT, class IT>
sgpp::base::FundamentalSplineBasis< LT, IT >::FundamentalSplineBasis ( )
inline

Default constructor.

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

Constructor.

Parameters
degreespline degree, must be odd (if it's even, degree - 1 is used)
template<class LT, class IT>
sgpp::base::FundamentalSplineBasis< LT, IT >::~FundamentalSplineBasis ( )
inlineoverride

Destructor.

Member Function Documentation

template<class LT, class IT>
double sgpp::base::FundamentalSplineBasis< LT, IT >::evalDx ( LT  l,
IT  i,
double  x 
)
inline
Parameters
llevel of basis function
iindex of basis function
xevaluation point
Returns
value of derivative of fundamental spline basis function

Referenced by sgpp::base::OperationEvalGradientFundamentalSplineNaive::evalGradient(), sgpp::base::OperationEvalHessianFundamentalSplineNaive::evalHessian(), and sgpp::base::OperationEvalPartialDerivativeFundamentalSplineNaive::evalPartialDerivative().

template<class LT, class IT>
double sgpp::base::FundamentalSplineBasis< LT, IT >::evalDxDx ( LT  l,
IT  i,
double  x 
)
inline
Parameters
llevel of basis function
iindex of basis function
xevaluation point
Returns
value of 2nd derivative of fundamental spline basis function

Referenced by sgpp::base::OperationEvalHessianFundamentalSplineNaive::evalHessian().

template<class LT, class IT>
size_t sgpp::base::FundamentalSplineBasis< LT, IT >::getDegree ( ) const
inlineoverridevirtual
Returns
fundamental spline degree

Implements sgpp::base::Basis< LT, IT >.

template<class LT, class IT>
double sgpp::base::FundamentalSplineBasis< LT, IT >::getIntegral ( LT  l,
IT  i 
)
inlineoverridevirtual
Parameters
llevel of basis function
iindex of basis function
Returns
value of the integral

Implements sgpp::base::Basis< LT, IT >.

Referenced by sgpp::base::OperationQuadratureFundamentalSpline::doQuadrature().

Member Data Documentation

template<class LT, class IT>
DataVector sgpp::base::FundamentalSplineBasis< LT, IT >::coordinates
protected

coordinates and weights for calculating integrals

Referenced by sgpp::base::FundamentalSplineBasis< unsigned int, unsigned int >::getIntegral().

template<class LT, class IT>
bool sgpp::base::FundamentalSplineBasis< LT, IT >::integrationInitialized = false
protected

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