SG++-Doxygen-Documentation
Loading...
Searching...
No Matches
sgpp::base::BsplineModifiedClenshawCurtisBasis< LT, IT > Class Template Reference

B-spline basis on Clenshaw-Curtis grids. More...

#include <BsplineModifiedClenshawCurtisBasis.hpp>

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

Public Member Functions

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

Protected Member Functions

double clenshawCurtisPoint (LT l, IT i, IT hInv) const
 
double clenshawCurtisPointNegativeIndex (LT l, IT ni, IT hInv) const
 
void constructKnots (LT l, IT i, IT hInv)
 Construct the (p+2) Clenshaw-Curtis knots of a B-spline basis function and save them in xi.
 
void constructKnotsNegativeIndex (LT l, IT ni, IT hInv)
 Construct the (p+2) Clenshaw-Curtis knots of a B-spline basis function and save them in xi.
 
double modifiedBSpline (LT l, IT hInv, double x, size_t p)
 
double modifiedBSplineDx (LT l, IT hInv, double x, size_t p)
 
double modifiedBSplineDxDx (LT l, IT hInv, double x, size_t p)
 
double nonUniformBSpline (double x, size_t p, size_t k) const
 
double nonUniformBSplineDx (double x, size_t p, size_t k) const
 
double nonUniformBSplineDxDx (double x, size_t p, size_t k) const
 

Protected Attributes

ClenshawCurtisTableclenshawCurtisTable
 reference to the Clenshaw-Curtis cache table
 
DataVector coordinates
 
size_t degree
 degree of the B-spline
 
bool integrationInitialized = false
 
DataVector weights
 
std::vector< double > xi
 temporary helper vector of fixed size p+2 containing B-spline knots
 
omp_nest_lock_t xiLock
 

Detailed Description

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

B-spline basis on Clenshaw-Curtis grids.

Constructor & Destructor Documentation

◆ BsplineModifiedClenshawCurtisBasis() [1/2]

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

Default constructor.

◆ BsplineModifiedClenshawCurtisBasis() [2/2]

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

Constructor.

Parameters
degreeB-spline degree, must be odd (if it's even, degree - 1 is used)

References sgpp::base::BsplineModifiedClenshawCurtisBasis< LT, IT >::degree, and sgpp::base::BsplineModifiedClenshawCurtisBasis< LT, IT >::xiLock.

◆ ~BsplineModifiedClenshawCurtisBasis()

Member Function Documentation

◆ clenshawCurtisPoint() [1/2]

◆ clenshawCurtisPoint() [2/2]

template<class LT , class IT >
double sgpp::base::BsplineModifiedClenshawCurtisBasis< LT, IT >::clenshawCurtisPoint ( LT  l,
IT  i,
IT  hInv 
) const
inlineprotected
Parameters
llevel of the grid point
iindex of the grid point
hInv2^l
Returns
i-th Clenshaw-Curtis grid point with level l

References sgpp::base::BsplineModifiedClenshawCurtisBasis< LT, IT >::clenshawCurtisTable, and sgpp::base::ClenshawCurtisTable::getPoint().

◆ clenshawCurtisPointNegativeIndex() [1/2]

template<class LT , class IT >
double sgpp::base::BsplineModifiedClenshawCurtisBasis< LT, IT >::clenshawCurtisPointNegativeIndex ( LT  l,
IT  ni 
) const
inline

◆ clenshawCurtisPointNegativeIndex() [2/2]

template<class LT , class IT >
double sgpp::base::BsplineModifiedClenshawCurtisBasis< LT, IT >::clenshawCurtisPointNegativeIndex ( LT  l,
IT  ni,
IT  hInv 
) const
inlineprotected
Parameters
llevel of the grid point
ninegative index -i of the grid point
hInv2^l
Returns
(-ni)-th Clenshaw-Curtis grid point with level l

References sgpp::base::BsplineModifiedClenshawCurtisBasis< LT, IT >::clenshawCurtisTable, and sgpp::base::ClenshawCurtisTable::getPoint().

◆ constructKnots()

◆ constructKnotsNegativeIndex()

◆ eval()

template<class LT , class IT >
double sgpp::base::BsplineModifiedClenshawCurtisBasis< LT, IT >::eval ( LT  l,
IT  i,
double  x 
)
inlineoverridevirtual
Parameters
llevel of basis function
iindex of basis function
xevaluation point
Returns
value of modified Clenshaw-Curtis B-spline basis function

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

References sgpp::base::BsplineModifiedClenshawCurtisBasis< LT, IT >::constructKnots(), sgpp::base::BsplineModifiedClenshawCurtisBasis< LT, IT >::degree, sgpp::base::BsplineModifiedClenshawCurtisBasis< LT, IT >::modifiedBSpline(), sgpp::base::BsplineModifiedClenshawCurtisBasis< LT, IT >::nonUniformBSpline(), and sgpp::base::BsplineModifiedClenshawCurtisBasis< LT, IT >::xiLock.

Referenced by python.uq.analysis.asgc.ASGCAnalysis.ASGCAnalysis::estimateDensity(), sgpp::base::OperationEvalModBsplineClenshawCurtisNaive::eval(), sgpp::base::OperationEvalModBsplineClenshawCurtisNaive::eval(), sgpp::base::OperationEvalGradientModBsplineClenshawCurtisNaive::evalGradient(), sgpp::base::OperationEvalGradientModBsplineClenshawCurtisNaive::evalGradient(), sgpp::base::OperationEvalHessianModBsplineClenshawCurtisNaive::evalHessian(), sgpp::base::OperationEvalHessianModBsplineClenshawCurtisNaive::evalHessian(), sgpp::base::OperationEvalPartialDerivativeModBsplineClenshawCurtisNaive::evalPartialDerivative(), sgpp::base::OperationEvalPartialDerivativeModBsplineClenshawCurtisNaive::evalPartialDerivative(), sgpp::base::BsplineModifiedClenshawCurtisBasis< LT, IT >::getIntegral(), sgpp::base::OperationMultipleEvalModBsplineClenshawCurtisNaive::mult(), sgpp::pde::OperationLaplaceModBsplineClenshawCurtis::mult(), sgpp::pde::OperationMatrixLTwoDotModBsplineClenshawCurtis::mult(), and sgpp::base::OperationMultipleEvalModBsplineClenshawCurtisNaive::multTranspose().

◆ evalDx()

◆ evalDxDx()

◆ getDegree()

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

◆ getIntegral()

◆ modifiedBSpline()

template<class LT , class IT >
double sgpp::base::BsplineModifiedClenshawCurtisBasis< LT, IT >::modifiedBSpline ( LT  l,
IT  hInv,
double  x,
size_t  p 
)
inlineprotected

◆ modifiedBSplineDx()

template<class LT , class IT >
double sgpp::base::BsplineModifiedClenshawCurtisBasis< LT, IT >::modifiedBSplineDx ( LT  l,
IT  hInv,
double  x,
size_t  p 
)
inlineprotected

◆ modifiedBSplineDxDx()

template<class LT , class IT >
double sgpp::base::BsplineModifiedClenshawCurtisBasis< LT, IT >::modifiedBSplineDxDx ( LT  l,
IT  hInv,
double  x,
size_t  p 
)
inlineprotected

◆ nonUniformBSpline()

◆ nonUniformBSplineDx()

template<class LT , class IT >
double sgpp::base::BsplineModifiedClenshawCurtisBasis< LT, IT >::nonUniformBSplineDx ( double  x,
size_t  p,
size_t  k 
) const
inlineprotected
Parameters
xevaluation point
pB-spline degree
kindex of B-spline in the knot sequence
Returns
value of derivative of non-uniform B-spline with knots \(\{\xi_k, ... \xi_{k+p+1}\}\)

References sgpp::base::BsplineModifiedClenshawCurtisBasis< LT, IT >::nonUniformBSpline(), and sgpp::base::BsplineModifiedClenshawCurtisBasis< LT, IT >::xi.

Referenced by sgpp::base::BsplineModifiedClenshawCurtisBasis< LT, IT >::evalDx(), and sgpp::base::BsplineModifiedClenshawCurtisBasis< LT, IT >::modifiedBSplineDx().

◆ nonUniformBSplineDxDx()

template<class LT , class IT >
double sgpp::base::BsplineModifiedClenshawCurtisBasis< LT, IT >::nonUniformBSplineDxDx ( double  x,
size_t  p,
size_t  k 
) const
inlineprotected
Parameters
xevaluation point
pB-spline degree
kindex of B-spline in the knot sequence
Returns
value of 2nd derivative of non-uniform B-spline with knots \(\{\xi_k, ... \xi_{k+p+1}\}\)

References sgpp::base::BsplineModifiedClenshawCurtisBasis< LT, IT >::nonUniformBSpline(), and sgpp::base::BsplineModifiedClenshawCurtisBasis< LT, IT >::xi.

Referenced by sgpp::base::BsplineModifiedClenshawCurtisBasis< LT, IT >::evalDxDx(), and sgpp::base::BsplineModifiedClenshawCurtisBasis< LT, IT >::modifiedBSplineDxDx().

Member Data Documentation

◆ clenshawCurtisTable

◆ coordinates

◆ degree

◆ integrationInitialized

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

◆ weights

◆ xi

◆ xiLock


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