SG++-Doxygen-Documentation
|
Class that implements the dehierarchisation on a linear sparse grid. More...
#include <StencilDehierarchisationLinear.hpp>
Public Member Functions | |
void | operator() (DataVector &source, DataVector &result, grid_iterator &index, size_t dim) |
Implements operator() needed by the sweep class during the grid traversal. More... | |
StencilDehierarchisationLinear (GridStorage &storage, OperationStencilHierarchisation::IndexStencil &surplusStencil, OperationStencilHierarchisation::IndexStencil &neighborStencil, OperationStencilHierarchisation::WeightStencil &weightStencil) | |
Constructor, must be bind to a grid. More... | |
~StencilDehierarchisationLinear () | |
Destructor. More... | |
Protected Types | |
typedef GridStorage::grid_iterator | grid_iterator |
Protected Member Functions | |
void | rec (DataVector &source, DataVector &result, grid_iterator &index, size_t dim, int seql, int seqr) |
Recursive dehierarchisaton algorithm, this algorithms works in-place -> source should be equal to result. More... | |
Protected Attributes | |
OperationStencilHierarchisation::IndexStencil & | _neighborStencil |
OperationStencilHierarchisation::IndexStencil & | _surplusStencil |
OperationStencilHierarchisation::WeightStencil & | _weightStencil |
GridStorage & | storage |
the grid object More... | |
Class that implements the dehierarchisation on a linear sparse grid.
Therefore the ()operator has to be implement in order to use the sweep algorithm for the grid traversal
|
protected |
sgpp::base::StencilDehierarchisationLinear::StencilDehierarchisationLinear | ( | GridStorage & | storage, |
OperationStencilHierarchisation::IndexStencil & | surplusStencil, | ||
OperationStencilHierarchisation::IndexStencil & | neighborStencil, | ||
OperationStencilHierarchisation::WeightStencil & | weightStencil | ||
) |
Constructor, must be bind to a grid.
storage | the grid storage object of the the grid, on which the dehierarchisation should be executed |
surplusStencil | storage holding the grid point indices which have neighbors |
neighborStencil | storage holding the grid point indices which are the neighbors |
weightStencil | storage holding the weight in order to calculate the surplus at each node using it's neighbors |
sgpp::base::StencilDehierarchisationLinear::~StencilDehierarchisationLinear | ( | ) |
Destructor.
void sgpp::base::StencilDehierarchisationLinear::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.
source | this DataVector holds the linear base coefficients of the sparse grid's ansatz-functions |
result | this DataVector holds the node base coefficients of the function that should be applied to the sparse grid |
index | a iterator object of the grid |
dim | current fixed dimension of the 'execution direction' |
References rec().
|
protected |
Recursive dehierarchisaton algorithm, this algorithms works in-place -> source should be equal to result.
source | this DataVector holds the linear base coefficients of the sparse grid's ansatz-functions |
result | this DataVector holds the node base coefficients of the function that should be applied to the sparse grid |
index | a iterator object of the grid |
dim | current fixed dimension of the 'execution direction' |
seql | left grid point index of the current region regarded in this step of the recursion |
seqr | right grid point index of the current region regarded in this step of the recursion |
References _neighborStencil, _surplusStencil, _weightStencil, python.statsfileInfo::f, 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()().
|
protected |
Referenced by rec().
|
protected |
Referenced by rec().
|
protected |
Referenced by rec().
|
protected |
the grid object
Referenced by rec().