SG++-Doxygen-Documentation
|
FirstMomemnt of sparse grid function, linear grid without boundaries. More...
#include <OperationFirstMomentModLinear.hpp>
Public Member Functions | |
double | doQuadrature (const DataVector &alpha, DataMatrix *bounds=nullptr) override |
Compute first moment of the function \[ \int_{\Omega} x\cdot f(x) dx. \] . More... | |
OperationFirstMomentModLinear (GridStorage &storage) | |
Constructor of OperationFirstMomentModLinear. More... | |
~OperationFirstMomentModLinear () override | |
Public Member Functions inherited from sgpp::base::OperationFirstMoment | |
OperationFirstMoment () | |
Constructor. More... | |
virtual | ~OperationFirstMoment () |
Destructor. More... | |
Protected Attributes | |
GridStorage & | storage |
FirstMomemnt of sparse grid function, linear grid without boundaries.
|
inlineexplicit |
Constructor of OperationFirstMomentModLinear.
storage | sparse grid storage object |
|
inlineoverride |
References alpha, and doQuadrature().
|
overridevirtual |
Compute first moment of the function
\[ \int_{\Omega} x\cdot f(x) dx. \]
.
alpha | Coefficient vector for current grid |
bounds | describes the boundaries of the hypercube of the original function |
Implements sgpp::base::OperationFirstMoment.
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(), and storage.
Referenced by ~OperationFirstMomentModLinear().
|
protected |
Referenced by doQuadrature().