SG++-Doxygen-Documentation
sgpp::base::ClenshawCurtisTable Class Reference

Lookup table for 1D Clenshaw-Curtis points. More...

#include <ClenshawCurtisTable.hpp>

Public Types

typedef HashGridPoint::index_type index_type
 
typedef HashGridPoint::level_type level_type
 

Public Member Functions

double getPoint (level_type l, index_type i) const
 
double getPoint (level_type l, index_type i, index_type hInv) const
 

Static Public Member Functions

static ClenshawCurtisTablegetInstance ()
 

Static Public Attributes

static const level_type DEFAULT_MAX_LEVEL = 16
 default number of intervals More...
 

Protected Member Functions

double calculatePoint (index_type hInv, index_type i) const
 
double calculatePoint (double h, index_type i) const
 

Protected Attributes

level_type maxLevel
 maximal level More...
 
DataVector table
 lookup table More...
 

Detailed Description

Lookup table for 1D Clenshaw-Curtis points.

This class precomputes the first maxLevel levels of a 1D Clenshaw-Curtis grid to increase performance of Clenshaw-Curtis grids.

Member Typedef Documentation

◆ index_type

◆ level_type

Member Function Documentation

◆ calculatePoint() [1/2]

double sgpp::base::ClenshawCurtisTable::calculatePoint ( index_type  hInv,
index_type  i 
) const
inlineprotected
Parameters
hInv2^l
iindex of the grid point (can be even)

Referenced by getPoint().

◆ calculatePoint() [2/2]

double sgpp::base::ClenshawCurtisTable::calculatePoint ( double  h,
index_type  i 
) const
inlineprotected
Parameters
hstep width of the grid point (2^(-l))
iindex of the grid point (can be even)

References M_PI.

◆ getInstance()

ClenshawCurtisTable & sgpp::base::ClenshawCurtisTable::getInstance ( )
static

◆ getPoint() [1/2]

double sgpp::base::ClenshawCurtisTable::getPoint ( level_type  l,
index_type  i 
) const
inline
Parameters
llevel of the grid point
iindex of the grid point (can be even)

References calculatePoint(), sgpp::base::DataVector::get(), maxLevel, and table.

Referenced by sgpp::base::BsplineClenshawCurtisBasis< unsigned int, unsigned int >::clenshawCurtisPoint(), sgpp::base::BsplineModifiedClenshawCurtisBasis< unsigned int, unsigned int >::clenshawCurtisPoint(), sgpp::base::BsplineModifiedClenshawCurtisBasis< unsigned int, unsigned int >::clenshawCurtisPointNegativeIndex(), sgpp::base::BsplineClenshawCurtisBasis< unsigned int, unsigned int >::constructKnots(), sgpp::base::OperationFirstMomentModPolyClenshawCurtis::doQuadrature(), sgpp::base::OperationFirstMomentPolyClenshawCurtis::doQuadrature(), sgpp::base::OperationSecondMomentModPolyClenshawCurtis::doQuadrature(), sgpp::base::OperationSecondMomentPolyClenshawCurtis::doQuadrature(), sgpp::base::OperationFirstMomentModBsplineClenshawCurtis::doQuadrature(), sgpp::base::OperationFirstMomentBsplineClenshawCurtis::doQuadrature(), sgpp::base::OperationFirstMomentPolyClenshawCurtisBoundary::doQuadrature(), sgpp::base::OperationSecondMomentBsplineClenshawCurtis::doQuadrature(), sgpp::base::OperationSecondMomentModBsplineClenshawCurtis::doQuadrature(), sgpp::base::OperationSecondMomentPolyClenshawCurtisBoundary::doQuadrature(), sgpp::base::LinearClenshawCurtisBasis< unsigned int, unsigned int >::eval(), sgpp::base::LinearModifiedClenshawCurtisBasis< unsigned int, unsigned int >::eval(), sgpp::base::PolyModifiedClenshawCurtisBasis< unsigned int, unsigned int >::eval(), sgpp::base::PolyClenshawCurtisBasis< unsigned int, unsigned int >::eval(), sgpp::base::PolyClenshawCurtisBasis< unsigned int, unsigned int >::evalBasis(), sgpp::base::PolyClenshawCurtisBasis< unsigned int, unsigned int >::evalDx(), sgpp::base::PolyModifiedClenshawCurtisBasis< unsigned int, unsigned int >::evalDx(), sgpp::base::LinearModifiedClenshawCurtisBasis< unsigned int, unsigned int >::getDegree(), sgpp::base::LinearClenshawCurtisBasis< unsigned int, unsigned int >::getIntegral(), sgpp::base::LinearModifiedClenshawCurtisBasis< unsigned int, unsigned int >::getIntegral(), sgpp::base::PolyModifiedClenshawCurtisBasis< unsigned int, unsigned int >::getIntegral(), sgpp::base::PolyClenshawCurtisBasis< unsigned int, unsigned int >::getIntegral(), sgpp::pde::OperationLaplacePolyClenshawCurtisBoundary::mult(), sgpp::pde::OperationLaplaceModBsplineClenshawCurtis::mult(), sgpp::pde::OperationLaplacePolyClenshawCurtis::mult(), sgpp::pde::OperationLaplaceBsplineClenshawCurtis::mult(), sgpp::pde::OperationLaplaceModPolyClenshawCurtis::mult(), sgpp::pde::OperationMatrixLTwoDotModPolyClenshawCurtis::mult(), sgpp::pde::OperationMatrixLTwoDotPolyClenshawCurtis::mult(), sgpp::pde::OperationMatrixLTwoDotPolyClenshawCurtisBoundary::mult(), sgpp::pde::OperationMatrixLTwoDotExplicitModPolyClenshawCurtis::OperationMatrixLTwoDotExplicitModPolyClenshawCurtis(), sgpp::pde::OperationMatrixLTwoDotExplicitPolyClenshawCurtis::OperationMatrixLTwoDotExplicitPolyClenshawCurtis(), sgpp::pde::OperationMatrixLTwoDotExplicitPolyClenshawCurtisBoundary::OperationMatrixLTwoDotExplicitPolyClenshawCurtisBoundary(), sgpp::base::DehierarchisationLinearClenshawCurtisBoundary::operator()(), sgpp::base::HierarchisationLinearClenshawCurtisBoundary::operator()(), sgpp::base::DehierarchisationLinearClenshawCurtisBoundary::rec(), sgpp::base::DehierarchisationModLinearClenshawCurtis::rec(), sgpp::base::DehierarchisationLinearClenshawCurtis::rec(), sgpp::base::HierarchisationLinearClenshawCurtis::rec(), sgpp::base::HierarchisationModLinearClenshawCurtis::rec(), sgpp::base::HierarchisationLinearClenshawCurtisBoundary::rec(), sgpp::base::DehierarchisationPolyClenshawCurtis::rec(), sgpp::base::DehierarchisationModPolyClenshawCurtis::rec(), sgpp::base::DehierarchisationPolyClenshawCurtisBoundary::rec(), sgpp::base::HierarchisationPolyClenshawCurtis::rec(), sgpp::base::HierarchisationModPolyClenshawCurtis::rec(), sgpp::base::HierarchisationPolyClenshawCurtisBoundary::rec(), and sgpp::base::Stretching::~Stretching().

◆ getPoint() [2/2]

double sgpp::base::ClenshawCurtisTable::getPoint ( level_type  l,
index_type  i,
index_type  hInv 
) const
inline
Parameters
llevel of the grid point
iindex of the grid point (can be even)
hInv2^l

References calculatePoint(), sgpp::base::DataVector::get(), maxLevel, and table.

Member Data Documentation

◆ DEFAULT_MAX_LEVEL

const level_type sgpp::base::ClenshawCurtisTable::DEFAULT_MAX_LEVEL = 16
static

default number of intervals

◆ maxLevel

◆ table

DataVector sgpp::base::ClenshawCurtisTable::table
protected

lookup table

Referenced by getPoint().


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