SG++
sgpp::base::OperationFirstMomentLinear Class Reference

FirstMomemnt of sparse grid function, linear grid without boundaries. More...

#include <OperationFirstMomentLinear.hpp>

Inheritance diagram for sgpp::base::OperationFirstMomentLinear:
sgpp::base::OperationFirstMoment

Public Member Functions

double doQuadrature (const DataVector &alpha) override
 Compute first moment of the function

\[ \int_{\Omega} x\cdot f(x) dx. \]

. More...

 
 OperationFirstMomentLinear (GridStorage &storage)
 Constructor of OperationFirstMomentLinear. More...
 
 ~OperationFirstMomentLinear () override
 
- Public Member Functions inherited from sgpp::base::OperationFirstMoment
 OperationFirstMoment ()
 Constructor. More...
 
virtual ~OperationFirstMoment ()
 Destructor. More...
 

Protected Attributes

GridStoragestorage
 

Detailed Description

FirstMomemnt of sparse grid function, linear grid without boundaries.

Constructor & Destructor Documentation

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

Constructor of OperationFirstMomentLinear.

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

References alpha, and doQuadrature().

Member Function Documentation

double sgpp::base::OperationFirstMomentLinear::doQuadrature ( const DataVector alpha)
overridevirtual

Compute first moment of the function

\[ \int_{\Omega} x\cdot f(x) dx. \]

.

Parameters
alphaCoefficient vector for current grid

Implements sgpp::base::OperationFirstMoment.

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

Referenced by ~OperationFirstMomentLinear().

Member Data Documentation

GridStorage& sgpp::base::OperationFirstMomentLinear::storage
protected

Referenced by doQuadrature().


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