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

Hierarchisation on sparse grid, linear grid without boundaries. More...

#include <OperationStencilHierarchisationLinear.hpp>

Inheritance diagram for sgpp::base::OperationStencilHierarchisationLinear:
sgpp::base::OperationStencilHierarchisation sgpp::base::OperationHierarchisation

Public Member Functions

void doDehierarchisation (DataVector &alpha) override
 Implements the dehierarchisation on a sparse grid The results are queried via get{Surplus,Neighbor,Weight}Stencil(). More...
 
void doHierarchisation (DataVector &node_values) override
 Implements the abstract hierarchisation on a sparse grid. More...
 
const IndexStencilgetNeighborStencil () const override
 Access to the results of the hierarchisation operation. More...
 
size_t getStencilSize () const override
 The number of operations performed, i.e. More...
 
const IndexStencilgetSurplusStencil () const override
 Access to the results of the hierarchisation operation. More...
 
const WeightStencilgetWeightStencil () const override
 Access to the results of the hierarchisation operation. More...
 
 OperationStencilHierarchisationLinear (GridStorage &storage)
 Constructor of OperationStencilHierarchisationLinear. More...
 
 ~OperationStencilHierarchisationLinear () override
 Destructor. More...
 
- Public Member Functions inherited from sgpp::base::OperationStencilHierarchisation
 OperationStencilHierarchisation ()
 Constructor. More...
 
 ~OperationStencilHierarchisation () override
 Destructor. More...
 
- Public Member Functions inherited from sgpp::base::OperationHierarchisation
 OperationHierarchisation ()
 Constructor. More...
 
virtual ~OperationHierarchisation ()
 Destructor. More...
 

Protected Attributes

IndexStencil neighborStencil
 Index array with neighboring surplus indices. More...
 
GridStoragestorage
 reference to the grid's GridStorage object More...
 
IndexStencil surplusStencil
 Index array with surplus indices. More...
 
WeightStencil weightStencil
 Index array with surplus indices. More...
 

Additional Inherited Members

- Public Types inherited from sgpp::base::OperationStencilHierarchisation
typedef std::vector< unsigned int > IndexStencil
 
typedef std::vector< float > WeightStencil
 

Detailed Description

Hierarchisation on sparse grid, linear grid without boundaries.

Constructor & Destructor Documentation

◆ OperationStencilHierarchisationLinear()

sgpp::base::OperationStencilHierarchisationLinear::OperationStencilHierarchisationLinear ( GridStorage storage)
inlineexplicit

Constructor of OperationStencilHierarchisationLinear.

Parameters
storagePointer to the grid's gridstorage obejct

◆ ~OperationStencilHierarchisationLinear()

sgpp::base::OperationStencilHierarchisationLinear::~OperationStencilHierarchisationLinear ( )
inlineoverride

Destructor.

References alpha, doDehierarchisation(), and doHierarchisation().

Member Function Documentation

◆ doDehierarchisation()

void sgpp::base::OperationStencilHierarchisationLinear::doDehierarchisation ( DataVector alpha)
overridevirtual

Implements the dehierarchisation on a sparse grid The results are queried via get{Surplus,Neighbor,Weight}Stencil().

Parameters
alphadummy array

Implements sgpp::base::OperationStencilHierarchisation.

References sgpp::base::HashGridStorage::getDimension(), python.statsfileInfo::i, neighborStencil, create_scripts::s, storage, surplusStencil, sgpp::base::sweep< FUNC >::sweep1D(), and weightStencil.

Referenced by ~OperationStencilHierarchisationLinear().

◆ doHierarchisation()

void sgpp::base::OperationStencilHierarchisationLinear::doHierarchisation ( DataVector node_values)
overridevirtual

Implements the abstract hierarchisation on a sparse grid.

The results are queried via get{Surpluses,Neighbors,Weights}.

Parameters
node_valuesdummy array

Implements sgpp::base::OperationStencilHierarchisation.

References sgpp::base::HashGridStorage::getDimension(), python.statsfileInfo::i, neighborStencil, create_scripts::s, storage, surplusStencil, sgpp::base::sweep< FUNC >::sweep1D(), and weightStencil.

Referenced by ~OperationStencilHierarchisationLinear().

◆ getNeighborStencil()

const IndexStencil& sgpp::base::OperationStencilHierarchisationLinear::getNeighborStencil ( ) const
inlineoverridevirtual

Access to the results of the hierarchisation operation.

This is an index array whose contents refer to the indices associated with the grid points by means of the storage scheme used.

Returns
the neighbors array

Implements sgpp::base::OperationStencilHierarchisation.

References neighborStencil.

◆ getStencilSize()

size_t sgpp::base::OperationStencilHierarchisationLinear::getStencilSize ( ) const
inlineoverridevirtual

The number of operations performed, i.e.

the length of each of the three arrays.

Returns
the total number of operations

Implements sgpp::base::OperationStencilHierarchisation.

References surplusStencil.

◆ getSurplusStencil()

const IndexStencil& sgpp::base::OperationStencilHierarchisationLinear::getSurplusStencil ( ) const
inlineoverridevirtual

Access to the results of the hierarchisation operation.

This is an index array whose contents refer to the indices associated with the grid points by means of the storage scheme used.

Returns
the surpluses array

Implements sgpp::base::OperationStencilHierarchisation.

References surplusStencil.

◆ getWeightStencil()

const WeightStencil& sgpp::base::OperationStencilHierarchisationLinear::getWeightStencil ( ) const
inlineoverridevirtual

Access to the results of the hierarchisation operation.

Returns
the weights array

Implements sgpp::base::OperationStencilHierarchisation.

References weightStencil.

Member Data Documentation

◆ neighborStencil

IndexStencil sgpp::base::OperationStencilHierarchisationLinear::neighborStencil
protected

Index array with neighboring surplus indices.

Referenced by doDehierarchisation(), doHierarchisation(), and getNeighborStencil().

◆ storage

GridStorage& sgpp::base::OperationStencilHierarchisationLinear::storage
protected

reference to the grid's GridStorage object

Referenced by doDehierarchisation(), and doHierarchisation().

◆ surplusStencil

IndexStencil sgpp::base::OperationStencilHierarchisationLinear::surplusStencil
protected

Index array with surplus indices.

Referenced by doDehierarchisation(), doHierarchisation(), getStencilSize(), and getSurplusStencil().

◆ weightStencil

WeightStencil sgpp::base::OperationStencilHierarchisationLinear::weightStencil
protected

Index array with surplus indices.

Referenced by doDehierarchisation(), doHierarchisation(), and getWeightStencil().


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