SG++-Doxygen-Documentation
|
Linear system of the hierarchization in a sparse grid. More...
#include <HierarchisationSLE.hpp>
Public Member Functions | |
void | clone (std::unique_ptr< CloneableSLE > &clone) const override |
size_t | getDimension () const override |
Pure virtual method returning the dimension (number of rows/columns) of the system. More... | |
base::Grid & | getGrid () |
base::GridStorage & | getGridStorage () |
double | getMatrixEntry (size_t i, size_t j) override |
HierarchisationSLE (base::Grid &grid) | |
Constructor. More... | |
HierarchisationSLE (base::Grid &grid, base::GridStorage &gridStorage) | |
Constructor. More... | |
bool | isMatrixEntryNonZero (size_t i, size_t j) override |
Public Member Functions inherited from sgpp::optimization::CloneableSLE | |
CloneableSLE () | |
Constructor. More... | |
bool | isCloneable () const override |
~CloneableSLE () override | |
Destructor. More... | |
Public Member Functions inherited from sgpp::optimization::SLE | |
virtual size_t | countNNZ () |
Count all non-zero entries. More... | |
virtual void | matrixVectorMultiplication (const base::DataVector &x, base::DataVector &y) |
Multiply the matrix with a vector. More... | |
SLE () | |
Constructor. More... | |
virtual | ~SLE () |
Destructor. More... | |
Protected Types | |
enum | { INVALID, BSPLINE, BSPLINE_BOUNDARY, BSPLINE_CLENSHAW_CURTIS, BSPLINE_MODIFIED, BSPLINE_MODIFIED_CLENSHAW_CURTIS, FUNDAMENTAL_SPLINE, FUNDAMENTAL_SPLINE_MODIFIED, LINEAR, LINEAR_BOUNDARY, LINEAR_CLENSHAW_CURTIS, LINEAR_CLENSHAW_CURTIS_BOUNDARY, LINEAR_MODIFIED, WAVELET, WAVELET_BOUNDARY, WAVELET_MODIFIED, NAK_BSPLINEBOUNDARY_COMBIGRID } |
type of grid/basis functions More... | |
Protected Member Functions | |
double | evalBasisFunctionAtGridPoint (size_t basisI, size_t pointJ) |
double | evalBsplineBoundaryFunctionAtGridPoint (size_t basisI, size_t pointJ) |
double | evalBsplineClenshawCurtisFunctionAtGridPoint (size_t basisI, size_t pointJ) |
double | evalBsplineFunctionAtGridPoint (size_t basisI, size_t pointJ) |
double | evalBsplineModifiedClenshawCurtisFunctionAtGridPoint (size_t basisI, size_t pointJ) |
double | evalBsplineModifiedFunctionAtGridPoint (size_t basisI, size_t pointJ) |
double | evalFundamentalSplineFunctionAtGridPoint (size_t basisI, size_t pointJ) |
double | evalFundamentalSplineModifiedFunctionAtGridPoint (size_t basisI, size_t pointJ) |
double | evalLinearBoundaryFunctionAtGridPoint (size_t basisI, size_t pointJ) |
double | evalLinearClenshawCurtisBoundaryFunctionAtGridPoint (size_t basisI, size_t pointJ) |
double | evalLinearClenshawCurtisFunctionAtGridPoint (size_t basisI, size_t pointJ) |
double | evalLinearFunctionAtGridPoint (size_t basisI, size_t pointJ) |
double | evalLinearModifiedFunctionAtGridPoint (size_t basisI, size_t pointJ) |
double | evalNakBsplineBoundaryCombigridFunctionAtGridPoint (size_t basisI, size_t pointJ) |
double | evalWaveletBoundaryFunctionAtGridPoint (size_t basisI, size_t pointJ) |
double | evalWaveletFunctionAtGridPoint (size_t basisI, size_t pointJ) |
double | evalWaveletModifiedFunctionAtGridPoint (size_t basisI, size_t pointJ) |
Linear system of the hierarchization in a sparse grid.
|
protected |
type of grid/basis functions
|
inlineexplicit |
Constructor.
Do not destruct the grid before this object!
grid | sparse grid |
Referenced by clone().
|
inline |
Constructor.
Do not destruct the grid before this object!
grid | sparse grid |
gridStorage | custom grid storage (use basis function according to grid, but use another set of grid points according to gridStorage) |
References basisType, sgpp::base::Bspline, BSPLINE, BSPLINE_BOUNDARY, BSPLINE_CLENSHAW_CURTIS, BSPLINE_MODIFIED, BSPLINE_MODIFIED_CLENSHAW_CURTIS, bsplineBasis, sgpp::base::BsplineBoundary, bsplineBoundaryBasis, sgpp::base::BsplineClenshawCurtis, bsplineClenshawCurtisBasis, FUNDAMENTAL_SPLINE, FUNDAMENTAL_SPLINE_MODIFIED, sgpp::base::FundamentalSpline, fundamentalSplineBasis, python.uq.operations.sparse_grid::getDegree(), sgpp::base::Grid::getType(), sgpp::base::Linear, LINEAR, LINEAR_BOUNDARY, LINEAR_CLENSHAW_CURTIS, LINEAR_CLENSHAW_CURTIS_BOUNDARY, LINEAR_MODIFIED, linearBasis, sgpp::base::LinearBoundary, sgpp::base::LinearClenshawCurtis, linearClenshawCurtisBasis, sgpp::base::LinearClenshawCurtisBoundary, linearClenshawCurtisBoundaryBasis, linearL0BoundaryBasis, sgpp::base::ModBspline, modBsplineBasis, sgpp::base::ModBsplineClenshawCurtis, modBsplineClenshawCurtisBasis, sgpp::base::ModFundamentalSpline, modFundamentalSplineBasis, sgpp::base::ModLinear, modLinearBasis, sgpp::base::ModWavelet, modWaveletBasis, NAK_BSPLINEBOUNDARY_COMBIGRID, sgpp::base::NakBsplineBoundaryCombigrid, nakBsplineBoundaryCombigridBasis, sgpp::base::Wavelet, WAVELET, WAVELET_BOUNDARY, WAVELET_MODIFIED, waveletBasis, sgpp::base::WaveletBoundary, and waveletBoundaryBasis.
|
inlineoverridevirtual |
[out] | clone | pointer to cloned object |
Implements sgpp::optimization::CloneableSLE.
References grid, gridStorage, and HierarchisationSLE().
|
inlineprotected |
basisI | basis function index |
pointJ | grid point index |
References BSPLINE, BSPLINE_BOUNDARY, BSPLINE_CLENSHAW_CURTIS, BSPLINE_MODIFIED, BSPLINE_MODIFIED_CLENSHAW_CURTIS, evalBsplineBoundaryFunctionAtGridPoint(), evalBsplineClenshawCurtisFunctionAtGridPoint(), evalBsplineFunctionAtGridPoint(), evalBsplineModifiedClenshawCurtisFunctionAtGridPoint(), evalBsplineModifiedFunctionAtGridPoint(), evalFundamentalSplineFunctionAtGridPoint(), evalFundamentalSplineModifiedFunctionAtGridPoint(), evalLinearBoundaryFunctionAtGridPoint(), evalLinearClenshawCurtisBoundaryFunctionAtGridPoint(), evalLinearClenshawCurtisFunctionAtGridPoint(), evalLinearFunctionAtGridPoint(), evalLinearModifiedFunctionAtGridPoint(), evalNakBsplineBoundaryCombigridFunctionAtGridPoint(), evalWaveletBoundaryFunctionAtGridPoint(), evalWaveletFunctionAtGridPoint(), evalWaveletModifiedFunctionAtGridPoint(), FUNDAMENTAL_SPLINE, FUNDAMENTAL_SPLINE_MODIFIED, LINEAR, LINEAR_BOUNDARY, LINEAR_CLENSHAW_CURTIS, LINEAR_CLENSHAW_CURTIS_BOUNDARY, LINEAR_MODIFIED, NAK_BSPLINEBOUNDARY_COMBIGRID, WAVELET, WAVELET_BOUNDARY, and WAVELET_MODIFIED.
Referenced by getMatrixEntry(), and isMatrixEntryNonZero().
|
inlineprotected |
basisI | basis function index |
pointJ | grid point index |
References sgpp::base::HashGridStorage::getDimension(), sgpp::base::HashGridPoint::getIndex(), sgpp::base::HashGridPoint::getLevel(), and sgpp::base::HashGridStorage::getUnitCoordinate().
Referenced by evalBasisFunctionAtGridPoint().
|
inlineprotected |
basisI | basis function index |
pointJ | grid point index |
References sgpp::base::HashGridStorage::getDimension(), sgpp::base::HashGridPoint::getIndex(), sgpp::base::HashGridPoint::getLevel(), and sgpp::base::HashGridStorage::getUnitCoordinate().
Referenced by evalBasisFunctionAtGridPoint().
|
inlineprotected |
basisI | basis function index |
pointJ | grid point index |
References sgpp::base::HashGridStorage::getDimension(), sgpp::base::HashGridPoint::getIndex(), sgpp::base::HashGridPoint::getLevel(), and sgpp::base::HashGridStorage::getUnitCoordinate().
Referenced by evalBasisFunctionAtGridPoint().
|
inlineprotected |
basisI | basis function index |
pointJ | grid point index |
References sgpp::base::HashGridStorage::getDimension(), sgpp::base::HashGridPoint::getIndex(), sgpp::base::HashGridPoint::getLevel(), and sgpp::base::HashGridStorage::getUnitCoordinate().
Referenced by evalBasisFunctionAtGridPoint().
|
inlineprotected |
basisI | basis function index |
pointJ | grid point index |
References sgpp::base::HashGridStorage::getDimension(), sgpp::base::HashGridPoint::getIndex(), sgpp::base::HashGridPoint::getLevel(), and sgpp::base::HashGridStorage::getUnitCoordinate().
Referenced by evalBasisFunctionAtGridPoint().
|
inlineprotected |
basisI | basis function index |
pointJ | grid point index |
References sgpp::base::HashGridStorage::getDimension(), sgpp::base::HashGridPoint::getIndex(), sgpp::base::HashGridPoint::getLevel(), and sgpp::base::HashGridStorage::getUnitCoordinate().
Referenced by evalBasisFunctionAtGridPoint().
|
inlineprotected |
basisI | basis function index |
pointJ | grid point index |
References sgpp::base::HashGridStorage::getDimension(), sgpp::base::HashGridPoint::getIndex(), sgpp::base::HashGridPoint::getLevel(), and sgpp::base::HashGridStorage::getUnitCoordinate().
Referenced by evalBasisFunctionAtGridPoint().
|
inlineprotected |
basisI | basis function index |
pointJ | grid point index |
References sgpp::base::HashGridStorage::getDimension(), sgpp::base::HashGridPoint::getIndex(), sgpp::base::HashGridPoint::getLevel(), and sgpp::base::HashGridStorage::getUnitCoordinate().
Referenced by evalBasisFunctionAtGridPoint().
|
inlineprotected |
basisI | basis function index |
pointJ | grid point index |
References sgpp::base::HashGridStorage::getDimension(), sgpp::base::HashGridPoint::getIndex(), sgpp::base::HashGridPoint::getLevel(), and sgpp::base::HashGridStorage::getUnitCoordinate().
Referenced by evalBasisFunctionAtGridPoint().
|
inlineprotected |
basisI | basis function index |
pointJ | grid point index |
References sgpp::base::HashGridStorage::getDimension(), sgpp::base::HashGridPoint::getIndex(), sgpp::base::HashGridPoint::getLevel(), and sgpp::base::HashGridStorage::getUnitCoordinate().
Referenced by evalBasisFunctionAtGridPoint().
|
inlineprotected |
basisI | basis function index |
pointJ | grid point index |
References sgpp::base::HashGridStorage::getDimension(), sgpp::base::HashGridPoint::getIndex(), sgpp::base::HashGridPoint::getLevel(), and sgpp::base::HashGridStorage::getUnitCoordinate().
Referenced by evalBasisFunctionAtGridPoint().
|
inlineprotected |
basisI | basis function index |
pointJ | grid point index |
References sgpp::base::HashGridStorage::getDimension(), sgpp::base::HashGridPoint::getIndex(), sgpp::base::HashGridPoint::getLevel(), and sgpp::base::HashGridStorage::getUnitCoordinate().
Referenced by evalBasisFunctionAtGridPoint().
|
inlineprotected |
basisI | basis function index |
pointJ | grid point index |
References sgpp::base::HashGridStorage::getCoordinate(), sgpp::base::HashGridStorage::getDimension(), sgpp::base::HashGridPoint::getIndex(), and sgpp::base::HashGridPoint::getLevel().
Referenced by evalBasisFunctionAtGridPoint().
|
inlineprotected |
basisI | basis function index |
pointJ | grid point index |
References sgpp::base::HashGridStorage::getDimension(), sgpp::base::HashGridPoint::getIndex(), sgpp::base::HashGridPoint::getLevel(), and sgpp::base::HashGridStorage::getUnitCoordinate().
Referenced by evalBasisFunctionAtGridPoint().
|
inlineprotected |
basisI | basis function index |
pointJ | grid point index |
References sgpp::base::HashGridStorage::getDimension(), sgpp::base::HashGridPoint::getIndex(), sgpp::base::HashGridPoint::getLevel(), and sgpp::base::HashGridStorage::getUnitCoordinate().
Referenced by evalBasisFunctionAtGridPoint().
|
inlineprotected |
basisI | basis function index |
pointJ | grid point index |
References sgpp::base::HashGridStorage::getDimension(), sgpp::base::HashGridPoint::getIndex(), sgpp::base::HashGridPoint::getLevel(), and sgpp::base::HashGridStorage::getUnitCoordinate().
Referenced by evalBasisFunctionAtGridPoint().
|
inlineoverridevirtual |
Pure virtual method returning the dimension (number of rows/columns) of the system.
Implements sgpp::optimization::SLE.
References sgpp::base::HashGridStorage::getSize(), and gridStorage.
|
inline |
References grid.
|
inline |
References gridStorage.
|
inlineoverridevirtual |
i | row index |
j | column index |
Implements sgpp::optimization::SLE.
References evalBasisFunctionAtGridPoint().
Referenced by sgpp::optimization::IterativeGridGeneratorLinearSurplus::generate().
|
inlineoverridevirtual |
i | row index |
j | column index |
Implements sgpp::optimization::SLE.
References evalBasisFunctionAtGridPoint().
enum { ... } sgpp::optimization::HierarchisationSLE::basisType |
type of grid/basis functions
Referenced by HierarchisationSLE().
|
protected |
B-spline basis.
Referenced by HierarchisationSLE().
|
protected |
B-spline boundary basis.
Referenced by HierarchisationSLE().
|
protected |
B-spline Clenshaw-Curtis basis.
Referenced by HierarchisationSLE().
|
protected |
fundamental spline basis
Referenced by HierarchisationSLE().
|
protected |
sparse grid
Referenced by clone(), python.uq.learner.Interpolant.Interpolant::doLearningIteration(), python.learner.Classifier.Classifier::evalError(), python.uq.learner.Interpolant.Interpolant::evalError(), python.uq.learner.SimulationLearner.SimulationLearner::getCollocationNodes(), python.uq.learner.SimulationLearner.SimulationLearner::getGrid(), getGrid(), python.uq.learner.SimulationLearner.SimulationLearner::getLearner(), python.uq.learner.Regressor.Regressor::learnData(), python.uq.learner.Regressor.Regressor::learnDataWithFolding(), python.uq.learner.Regressor.Regressor::learnDataWithTest(), python.learner.Classifier.Classifier::refineGrid(), python.learner.Regressor.Regressor::refineGrid(), python.uq.learner.Regressor.Regressor::refineGrid(), python.uq.learner.SimulationLearner.SimulationLearner::refineGrid(), python.learner.Classifier.Classifier::updateResults(), python.learner.Regressor.Regressor::updateResults(), and python.uq.learner.Regressor.Regressor::updateResults().
|
protected |
grid storage
Referenced by clone(), getDimension(), and getGridStorage().
|
protected |
linear basis
Referenced by HierarchisationSLE().
|
protected |
linear Clenshaw-Curtis basis
Referenced by HierarchisationSLE().
|
protected |
linear Clenshaw-Curtis boundary basis
Referenced by HierarchisationSLE().
|
protected |
linear boundary basis
Referenced by HierarchisationSLE().
|
protected |
modified B-spline basis
Referenced by HierarchisationSLE().
|
protected |
modified B-spline Clenshaw-Curtis basis
Referenced by HierarchisationSLE().
|
protected |
modified fundamental spline basis
Referenced by HierarchisationSLE().
|
protected |
modified linear basis
Referenced by HierarchisationSLE().
|
protected |
modified wavelet basis
Referenced by HierarchisationSLE().
|
protected |
not-a-knot B-spline Boundary basis
Referenced by HierarchisationSLE().
|
protected |
wavelet basis
Referenced by HierarchisationSLE().
|
protected |
wavelet boundary basis
Referenced by HierarchisationSLE().