SG++
sgpp::base::GeneralizedBoundaryGridGenerator Class Reference

This class provides the interface for the grid generation for grids with boundaries, pentagon cut through sub space scheme. More...

#include <GeneralizedBoundaryGridGenerator.hpp>

Inheritance diagram for sgpp::base::GeneralizedBoundaryGridGenerator:

## Public Member Functions

void cliques (size_t level, size_t clique_size) override
Creates a sparse grid with fully connected cliques. More...

void coarsen (CoarseningFunctor &func, DataVector &alpha) override
Coarsens a grid according to the settings of the CoarseningFunctor func. More...

void coarsenNFirstOnly (CoarseningFunctor &func, DataVector &alpha, size_t numFirstOnly) override
Coarsens a grid according to the settings of the CoarseningFunctor func. More...

void full (size_t level) override
Creates a full grid for a certain level $$n$$, i.e., $$V_n = \bigoplus_{|\vec{l}|_\infty *\leq n} W_{\vec{l}}$$. More...

GeneralizedBoundaryGridGenerator (GridStorage &storage)
Constructor. More...

size_t getNumberOfRefinablePoints () override
Returns the number of points on the grid that can be refined in the next iteration. More...

size_t getNumberOfRefinablePointsToMaxLevel (size_t maxLevel) override
Returns the number of points on the grid that can be refined in the next iteration additionally a maximum level for refinement is taken into account. More...

size_t getNumberOfRemovablePoints () override
Returns the number of points on the grid that can be removed in the next iteration. More...

void refine (RefinementFunctor &func) override
Refines a grid according to the settings of the RefinementFunctor func. More...

void refineMaxLevel (RefinementFunctor &func, size_t maxLevel) override
Refines a grid according to the settings of the RefinementFunctor func. More...

void regular (size_t level) override
Creates a regular truncated boundary grid with given level and l_user=1 Is the same as the regular truncated grid. More...

void truncated (size_t level, size_t l_user) override
Creates a super truncated boundary grid with given level and l_user. More...

~GeneralizedBoundaryGridGenerator () override
Destructor. More...

Public Member Functions inherited from sgpp::base::GridGenerator
virtual void cliques (size_t level, size_t clique_size, double T)
Creates a sparse grid with fully connected cliques. More...

GridGenerator ()
Constructor. More...

virtual void refineInter (RefinementFunctor &func, const std::vector< std::vector< size_t >> &interactions)
Refines a grid according to the settings of the RefinementFunctor func. More...

virtual void regular (size_t level, double T)
Creates a regular sparse grid for a certain level $$n$$, i.e., $$V_n^{(1)} = *\bigoplus_{|\vec{l}|_1 \leq n+d-1} W_{\vec{l}}$$. More...

virtual void regularInter (size_t level, const std::vector< std::vector< size_t >> &terms, double T)
Creates a regular sparse grid for a certain level $$n$$, i.e., $$V_n^{(1)} = *\bigoplus_{|\vec{l}|_1 \leq n+d-1} W_{\vec{l}}$$. More...

virtual ~GridGenerator ()
Destructor. More...

## Protected Attributes

GridStoragestorage
reference to the grid's storage object More...

## Detailed Description

This class provides the interface for the grid generation for grids with boundaries, pentagon cut through sub space scheme.

## Constructor & Destructor Documentation

 sgpp::base::GeneralizedBoundaryGridGenerator::GeneralizedBoundaryGridGenerator ( GridStorage & storage )
explicit

Constructor.

Parameters
 storage template type that holds the grid points
 sgpp::base::GeneralizedBoundaryGridGenerator::~GeneralizedBoundaryGridGenerator ( )
override

Destructor.

## Member Function Documentation

 void sgpp::base::GeneralizedBoundaryGridGenerator::cliques ( size_t level, size_t clique_size )
overridevirtual

Creates a sparse grid with fully connected cliques.

Parameters
 level Grid level clique_size clique size

Implements sgpp::base::GridGenerator.

 void sgpp::base::GeneralizedBoundaryGridGenerator::coarsen ( CoarseningFunctor & func, DataVector & alpha )
inlineoverridevirtual

Coarsens a grid according to the settings of the CoarseningFunctor func.

Parameters
 func pointer to coarsening functor alpha Pointer to DataVector containing the grid's coefficients

Implements sgpp::base::GridGenerator.

 void sgpp::base::GeneralizedBoundaryGridGenerator::coarsenNFirstOnly ( CoarseningFunctor & func, DataVector & alpha, size_t numFirstOnly )
inlineoverridevirtual

Coarsens a grid according to the settings of the CoarseningFunctor func.

Only numFirstOnly first grid points are checked for coarsening.

Parameters
 func pointer to coarsening functor alpha Pointer to DataVector containing the grid's coefficients numFirstOnly max. number grid points to be coarsened

Implements sgpp::base::GridGenerator.

 void sgpp::base::GeneralizedBoundaryGridGenerator::full ( size_t level )
inlineoverridevirtual

Creates a full grid for a certain level $$n$$, i.e., $$V_n = \bigoplus_{|\vec{l}|_\infty *\leq n} W_{\vec{l}}$$.

Parameters
 level Grid level

Implements sgpp::base::GridGenerator.

References truncated().

 size_t sgpp::base::GeneralizedBoundaryGridGenerator::getNumberOfRefinablePoints ( )
inlineoverridevirtual

Returns the number of points on the grid that can be refined in the next iteration.

Returns
the number of points on the grid that can be refined

Implements sgpp::base::GridGenerator.

 size_t sgpp::base::GeneralizedBoundaryGridGenerator::getNumberOfRefinablePointsToMaxLevel ( size_t maxLevel )
inlineoverridevirtual

Returns the number of points on the grid that can be refined in the next iteration additionally a maximum level for refinement is taken into account.

Parameters
 maxLevel no points on higher levels than maxLevel will be created
Returns
the number of points on the grid that can be refined

Implements sgpp::base::GridGenerator.

 size_t sgpp::base::GeneralizedBoundaryGridGenerator::getNumberOfRemovablePoints ( )
inlineoverridevirtual

Returns the number of points on the grid that can be removed in the next iteration.

Returns
the number of points on the grid that can be removed

Implements sgpp::base::GridGenerator.

 void sgpp::base::GeneralizedBoundaryGridGenerator::refine ( RefinementFunctor & func )
inlineoverridevirtual

Refines a grid according to the settings of the RefinementFunctor func.

Parameters
 func pointer to refinement functor

Implements sgpp::base::GridGenerator.

 void sgpp::base::GeneralizedBoundaryGridGenerator::refineMaxLevel ( RefinementFunctor & func, size_t maxLevel )
inlineoverridevirtual

Refines a grid according to the settings of the RefinementFunctor func.

additionally a maximum level for refinement is taken into account

Parameters
 func pointer to refinement functor maxLevel no points on higher levels than maxLevel will be created

Implements sgpp::base::GridGenerator.

 void sgpp::base::GeneralizedBoundaryGridGenerator::regular ( size_t level )
overridevirtual

Creates a regular truncated boundary grid with given level and l_user=1 Is the same as the regular truncated grid.

Implements sgpp::base::GridGenerator.

References truncated().

 void sgpp::base::GeneralizedBoundaryGridGenerator::truncated ( size_t level, size_t l_user )
overridevirtual

Creates a super truncated boundary grid with given level and l_user.

Parameters
 level the maximum level of the grid l_user the number of fullgrids cut off from the boundaries.

Reimplemented from sgpp::base::GridGenerator.

References storage, and sgpp::base::HashGenerator::truncated().

Referenced by full(), and regular().

## Member Data Documentation

 GridStorage& sgpp::base::GeneralizedBoundaryGridGenerator::storage
protected

reference to the grid's storage object

Referenced by truncated().

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