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

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

#include <OperationQuadratureLinearBoundary.hpp>

Inheritance diagram for sgpp::base::OperationQuadratureLinearBoundary:
sgpp::base::OperationQuadrature

Public Member Functions

double doQuadrature (DataVector &alpha) override
 Quadrature for piecewise linear hat basis functions. More...
 
 OperationQuadratureLinearBoundary (GridStorage &storage)
 Constructor of OperationQuadratureLinear. More...
 
 ~OperationQuadratureLinearBoundary () 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

◆ OperationQuadratureLinearBoundary()

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

Constructor of OperationQuadratureLinear.

Parameters
storagePointer to the grid's GridStorage object

◆ ~OperationQuadratureLinearBoundary()

sgpp::base::OperationQuadratureLinearBoundary::~OperationQuadratureLinearBoundary ( )
inlineoverride

References alpha, and doQuadrature().

Member Function Documentation

◆ doQuadrature()

double sgpp::base::OperationQuadratureLinearBoundary::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(), storage, and analyse_erg::tmp.

Referenced by ~OperationQuadratureLinearBoundary().

Member Data Documentation

◆ storage

GridStorage& sgpp::base::OperationQuadratureLinearBoundary::storage
protected

Referenced by doQuadrature().


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