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

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

#include <OperationQuadratureLinear.hpp>

Inheritance diagram for sgpp::base::OperationQuadratureLinear:
sgpp::base::OperationQuadrature

Public Member Functions

double doQuadrature (DataVector &alpha) override
 Quadrature for piecewise linear hat basis functions. More...
 
 OperationQuadratureLinear (GridStorage &storage)
 Constructor of OperationQuadratureLinear. More...
 
 ~OperationQuadratureLinear () override
 
- Public Member Functions inherited from sgpp::base::OperationQuadrature
 OperationQuadrature ()
 Constructor. More...
 
virtual ~OperationQuadrature ()
 Destructor. More...
 

Protected Attributes

GridStoragestorage
 

Detailed Description

Quadrature on sparse grid, linear grid without boundaries.

Constructor & Destructor Documentation

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

Constructor of OperationQuadratureLinear.

Parameters
storagePointer to the grid's GridStorage object
sgpp::base::OperationQuadratureLinear::~OperationQuadratureLinear ( )
inlineoverride

References alpha, and doQuadrature().

Member Function Documentation

double sgpp::base::OperationQuadratureLinear::doQuadrature ( DataVector alpha)
overridevirtual

Quadrature for piecewise linear hat basis functions.

Computes

\[ \sum_{\vec{l}} 2^{-|\vec{l}|}\alpha_{\vec{l}}. \]

Parameters
alphaCoefficient vector for current grid

Implements sgpp::base::OperationQuadrature.

References sgpp::base::HashGridStorage::begin(), sgpp::base::HashGridStorage::end(), sgpp::base::DataVector::get(), sgpp::base::HashGridStorage::getBoundingBox(), sgpp::base::HashGridStorage::getDimension(), sgpp::base::BoundingBox::getIntervalWidth(), sgpp::combigrid::pow(), and storage.

Referenced by ~OperationQuadratureLinear().

Member Data Documentation

GridStorage& sgpp::base::OperationQuadratureLinear::storage
protected

Referenced by doQuadrature().


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