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

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

#include <OperationSecondMomentLinearBoundary.hpp>

Inheritance diagram for sgpp::base::OperationSecondMomentLinearBoundary:
sgpp::base::OperationSecondMoment

Public Member Functions

double doQuadrature (DataVector &alpha, DataMatrix *bounds=nullptr) override
 Compute second moment of the function

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

. More...

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

Protected Attributes

GridStoragestorage
 

Detailed Description

SecondMomemnt of sparse grid function, linear grid without boundaries.

Constructor & Destructor Documentation

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

Constructor of OperationSecondMomentLinearBoundary.

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

References alpha, and doQuadrature().

Member Function Documentation

double sgpp::base::OperationSecondMomentLinearBoundary::doQuadrature ( DataVector alpha,
DataMatrix bounds = nullptr 
)
overridevirtual

Compute second moment of the function

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

.

Parameters
alphaCoefficient vector for current grid
boundsdescribes the boundaries of the hypercube of the original function

Implements sgpp::base::OperationSecondMoment.

References sgpp::base::HashGridStorage::begin(), chess::dim, sgpp::base::HashGridStorage::end(), sgpp::base::DataVector::get(), sgpp::base::DataMatrix::get(), sgpp::base::HashGridStorage::getDimension(), sgpp::base::DataMatrix::getNcols(), sgpp::base::DataMatrix::getNrows(), level, sgpp::combigrid::pow(), python.uq.quadrature.full_grid::quad(), and storage.

Referenced by ~OperationSecondMomentLinearBoundary().

Member Data Documentation

GridStorage& sgpp::base::OperationSecondMomentLinearBoundary::storage
protected

Referenced by doQuadrature().


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