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

Class that implements the dehierarchisation on a polynomial sparse grid. More...

#include <DehierarchisationPolyClenshawCurtisBoundary.hpp>

Public Member Functions

 DehierarchisationPolyClenshawCurtisBoundary (GridStorage &storage, SPolyClenshawCurtisBoundaryBase *base)
 Constructor, must be bind to a grid. More...
 
void operator() (DataVector &source, DataVector &result, grid_iterator &index, size_t dim)
 Implements operator() needed by the sweep class during the grid traversal. More...
 
 ~DehierarchisationPolyClenshawCurtisBoundary ()
 Destructor. More...
 

Protected Types

typedef GridStorage::grid_iterator grid_iterator
 
typedef index_t index_type
 
typedef level_t level_type
 

Protected Member Functions

void rec (DataVector &source, DataVector &result, grid_iterator &index, size_t dim, DataVector &coeffs)
 Recursive dehierarchisation algorithm, this algorithms works in-place -> source should be equal to result. More...
 

Protected Attributes

SPolyClenshawCurtisBoundaryBasebase
 the base More...
 
ClenshawCurtisTableclenshawCurtisTable
 clenshaw curtis points More...
 
GridStoragestorage
 the grid object More...
 

Detailed Description

Class that implements the dehierarchisation on a polynomial sparse grid.

Therefore the ()operator has to be implement in order to use the sweep algorithm for the grid traversal

Member Typedef Documentation

Constructor & Destructor Documentation

sgpp::base::DehierarchisationPolyClenshawCurtisBoundary::DehierarchisationPolyClenshawCurtisBoundary ( GridStorage storage,
SPolyClenshawCurtisBoundaryBase base 
)
explicit

Constructor, must be bind to a grid.

Parameters
storagethe grid storage object of the the grid, on which the dehierarchisation should be executed
basePolynomial basis
sgpp::base::DehierarchisationPolyClenshawCurtisBoundary::~DehierarchisationPolyClenshawCurtisBoundary ( )

Destructor.

Member Function Documentation

void sgpp::base::DehierarchisationPolyClenshawCurtisBoundary::operator() ( DataVector source,
DataVector result,
grid_iterator index,
size_t  dim 
)

Implements operator() needed by the sweep class during the grid traversal.

This function is applied to the whole grid.

Parameters
sourcethis DataVector holds the linear base coefficients of the sparse grid's ansatz-functions
resultthis DataVector holds the node base coefficients of the function that should be applied to the sparse grid
indexa iterator object of the grid
dimcurrent fixed dimension of the 'execution direction'

References sgpp::base::HashGridIterator::getGridDepth(), rec(), sgpp::base::HashGridIterator::resetToLeftLevelZero(), sgpp::base::HashGridIterator::resetToRightLevelZero(), sgpp::base::HashGridIterator::seq(), and sgpp::base::DataVector::setAll().

void sgpp::base::DehierarchisationPolyClenshawCurtisBoundary::rec ( DataVector source,
DataVector result,
grid_iterator index,
size_t  dim,
DataVector coeffs 
)
protected

Recursive dehierarchisation algorithm, this algorithms works in-place -> source should be equal to result.

Parameters
sourcethis DataVector holds the linear base coefficients of the sparse grid's ansatz-functions
resultthis DataVector holds the node base coefficients of the function that should be applied to the sparse grid
indexa iterator object of the grid
dimcurrent fixed dimension of the 'execution direction'
coeffsnodal coefficients computed so far

References base, clenshawCurtisTable, sgpp::base::PolyClenshawCurtisBoundaryBasis< LT, IT >::evalHierToTop(), sgpp::base::HashGridIterator::get(), sgpp::base::ClenshawCurtisTable::getPoint(), sgpp::base::HashGridIterator::hint(), sgpp::base::HashGridStorage::isInvalidSequenceNumber(), sgpp::base::HashGridIterator::leftChild(), sgpp::base::HashGridIterator::seq(), sgpp::base::HashGridIterator::stepRight(), storage, and sgpp::base::HashGridIterator::up().

Referenced by operator()().

Member Data Documentation

SPolyClenshawCurtisBoundaryBase* sgpp::base::DehierarchisationPolyClenshawCurtisBoundary::base
protected

the base

Referenced by rec().

ClenshawCurtisTable& sgpp::base::DehierarchisationPolyClenshawCurtisBoundary::clenshawCurtisTable
protected

clenshaw curtis points

Referenced by rec().

GridStorage& sgpp::base::DehierarchisationPolyClenshawCurtisBoundary::storage
protected

the grid object

Referenced by rec().


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