SG++-Doxygen-Documentation
sgpp::combigrid::LTwoScalarProductHashMapNakBsplineBoundaryCombigrid Class Reference

#include <LTwoScalarProductHashMapNakBsplineBoundaryCombigrid.hpp>

Public Member Functions

double calculateScalarProduct (base::level_t lid, base::index_t iid, base::level_t ljd, base::index_t ijd, base::DataVector coordinates, base::DataVector weights, sgpp::base::SNakBsplineBoundaryCombigridBase basis, size_t d, double offseti_left, double offsetj_left, sgpp::base::index_t hInvik, sgpp::base::index_t hInvjk, double hik, double hjk, size_t pp1h)
 subroutine to calculate the scalar product of the B splines i and j with level index pairs (li,ii) and (lj,ij) More...
 
MultiIndex hashLevelIndex (base::level_t li, base::index_t ii, base::level_t lj, base::index_t ij, size_t d)
 Creates hash key from the two level-index pairs of two 1D Bsplines. More...
 
 LTwoScalarProductHashMapNakBsplineBoundaryCombigrid ()
 
 LTwoScalarProductHashMapNakBsplineBoundaryCombigrid (sgpp::base::Grid *grid)
 Constructor. More...
 
 LTwoScalarProductHashMapNakBsplineBoundaryCombigrid (sgpp::base::Grid *grid, sgpp::combigrid::WeightFunctionsCollection weightFunctionsCollection)
 
 LTwoScalarProductHashMapNakBsplineBoundaryCombigrid (sgpp::base::Grid *grid, sgpp::combigrid::WeightFunctionsCollection weightFunctionsCollection, sgpp::base::DataVector bounds)
 
 LTwoScalarProductHashMapNakBsplineBoundaryCombigrid (sgpp::base::Grid *grid, sgpp::combigrid::WeightFunctionsCollection weightFunctionsCollection, sgpp::base::DataVector bounds, size_t numAdditionalPoints, size_t incrementQuadraturePoints=5)
 
virtual void mult (sgpp::base::DataVector &alpha, sgpp::base::DataVector &result)
 Implementation of standard matrix multiplication. More...
 
void setBounds (sgpp::base::DataVector bounds)
 
void setWeightFunction (sgpp::combigrid::WeightFunctionsCollection weightFunctionsCollection)
 
void updateGrid (sgpp::base::Grid *grid)
 
virtual ~LTwoScalarProductHashMapNakBsplineBoundaryCombigrid ()
 Destructor. More...
 

Protected Attributes

sgpp::base::DataVector bounds
 
size_t degree
 
sgpp::base::Gridgrid
 
size_t incrementQuadraturePoints
 
std::map< MultiIndex, double > innerProducts
 
bool isCustomWeightFunction
 
size_t numAdditionalPoints
 
sgpp::combigrid::WeightFunctionsCollection weightFunctionsCollection
 

Constructor & Destructor Documentation

◆ LTwoScalarProductHashMapNakBsplineBoundaryCombigrid() [1/5]

sgpp::combigrid::LTwoScalarProductHashMapNakBsplineBoundaryCombigrid::LTwoScalarProductHashMapNakBsplineBoundaryCombigrid ( )
inline

◆ LTwoScalarProductHashMapNakBsplineBoundaryCombigrid() [2/5]

sgpp::combigrid::LTwoScalarProductHashMapNakBsplineBoundaryCombigrid::LTwoScalarProductHashMapNakBsplineBoundaryCombigrid ( sgpp::base::Grid grid)
explicit

◆ LTwoScalarProductHashMapNakBsplineBoundaryCombigrid() [3/5]

sgpp::combigrid::LTwoScalarProductHashMapNakBsplineBoundaryCombigrid::LTwoScalarProductHashMapNakBsplineBoundaryCombigrid ( sgpp::base::Grid grid,
sgpp::combigrid::WeightFunctionsCollection  weightFunctionsCollection 
)

◆ LTwoScalarProductHashMapNakBsplineBoundaryCombigrid() [4/5]

sgpp::combigrid::LTwoScalarProductHashMapNakBsplineBoundaryCombigrid::LTwoScalarProductHashMapNakBsplineBoundaryCombigrid ( sgpp::base::Grid grid,
sgpp::combigrid::WeightFunctionsCollection  weightFunctionsCollection,
sgpp::base::DataVector  bounds 
)

◆ LTwoScalarProductHashMapNakBsplineBoundaryCombigrid() [5/5]

sgpp::combigrid::LTwoScalarProductHashMapNakBsplineBoundaryCombigrid::LTwoScalarProductHashMapNakBsplineBoundaryCombigrid ( sgpp::base::Grid grid,
sgpp::combigrid::WeightFunctionsCollection  weightFunctionsCollection,
sgpp::base::DataVector  bounds,
size_t  numAdditionalPoints,
size_t  incrementQuadraturePoints = 5 
)

◆ ~LTwoScalarProductHashMapNakBsplineBoundaryCombigrid()

sgpp::combigrid::LTwoScalarProductHashMapNakBsplineBoundaryCombigrid::~LTwoScalarProductHashMapNakBsplineBoundaryCombigrid ( )
virtual

Member Function Documentation

◆ calculateScalarProduct()

double sgpp::combigrid::LTwoScalarProductHashMapNakBsplineBoundaryCombigrid::calculateScalarProduct ( base::level_t  lid,
base::index_t  iid,
base::level_t  ljd,
base::index_t  ijd,
base::DataVector  coordinates,
base::DataVector  weights,
sgpp::base::SNakBsplineBoundaryCombigridBase  basis,
size_t  d,
double  offseti_left,
double  offsetj_left,
sgpp::base::index_t  hInvik,
sgpp::base::index_t  hInvjk,
double  hik,
double  hjk,
size_t  pp1h 
)

subroutine to calculate the scalar product of the B splines i and j with level index pairs (li,ii) and (lj,ij)

References degree, sgpp::base::NakBsplineBoundaryCombigridBasis< LT, IT >::eval(), python.leja::start, and weightFunctionsCollection.

Referenced by mult(), and updateGrid().

◆ hashLevelIndex()

MultiIndex sgpp::combigrid::LTwoScalarProductHashMapNakBsplineBoundaryCombigrid::hashLevelIndex ( base::level_t  li,
base::index_t  ii,
base::level_t  lj,
base::index_t  ij,
size_t  d 
)

Creates hash key from the two level-index pairs of two 1D Bsplines.

Referenced by mult(), and updateGrid().

◆ mult()

◆ setBounds()

void sgpp::combigrid::LTwoScalarProductHashMapNakBsplineBoundaryCombigrid::setBounds ( sgpp::base::DataVector  bounds)
inline

◆ setWeightFunction()

void sgpp::combigrid::LTwoScalarProductHashMapNakBsplineBoundaryCombigrid::setWeightFunction ( sgpp::combigrid::WeightFunctionsCollection  weightFunctionsCollection)
inline

◆ updateGrid()

Member Data Documentation

◆ bounds

◆ degree

size_t sgpp::combigrid::LTwoScalarProductHashMapNakBsplineBoundaryCombigrid::degree
protected

◆ grid

sgpp::base::Grid* sgpp::combigrid::LTwoScalarProductHashMapNakBsplineBoundaryCombigrid::grid
protected

Referenced by python.uq.dists.SGDEdist.SGDEdist::__str__(), python.learner.Learner.Learner::applyData(), python.tools.Matrix::ApplyMatrix(), python.uq.dists.SGDEdist.SGDEdist::cdf(), python.uq.learner.Interpolant.Interpolant::doLearningIteration(), python.learner.Learner.Learner::doLearningIteration(), python.learner.Classifier.Classifier::evalError(), python.uq.learner.Interpolant.Interpolant::evalError(), python.tools.Matrix::generateb(), python.controller.CheckpointController.CheckpointController::generateFoldValidationJob(), python.uq.learner.SimulationLearner.SimulationLearner::getCollocationNodes(), python.uq.learner.SimulationLearner.SimulationLearner::getGrid(), python.uq.learner.SimulationLearner.SimulationLearner::getLearner(), python.uq.learner.Regressor.Regressor::learnData(), python.learner.Learner.Learner::learnData(), python.uq.learner.Regressor.Regressor::learnDataWithFolding(), python.learner.Learner.Learner::learnDataWithFolding(), python.uq.learner.Regressor.Regressor::learnDataWithTest(), python.learner.Learner.Learner::learnDataWithTest(), python.controller.CheckpointController.CheckpointController::loadAll(), LTwoScalarProductHashMapNakBsplineBoundaryCombigrid(), python.uq.operations.forcePositivity.operationMakePositive.OperationMakePositive::makePositive(), python.uq.operations.forcePositivity.operationMakePositiveFast.OperationMakePositiveFast::makePositive(), python.uq.dists.SGDEdist.SGDEdist::mean(), mult(), python.uq.dists.SGDEdist.SGDEdist::pdf(), python.uq.dists.SGDEdist.SGDEdist::ppf(), python.learner.Classifier.Classifier::refineGrid(), python.learner.Regressor.Regressor::refineGrid(), python.uq.learner.Regressor.Regressor::refineGrid(), python.uq.learner.SimulationLearner.SimulationLearner::refineGrid(), python.controller.CheckpointController.CheckpointController::saveGrid(), python.controller.CheckpointController.CheckpointController::setGrid(), python.uq.learner.Learner.Learner::setGrid(), python.learner.Learner.Learner::setGrid(), python.uq.operations.forcePositivity.localFullGridSearch.LocalFullGrid::split(), python.uq.dists.SGDEdist.SGDEdist::toJson(), updateGrid(), python.learner.Classifier.Classifier::updateResults(), python.learner.Regressor.Regressor::updateResults(), python.uq.learner.Regressor.Regressor::updateResults(), and python.uq.dists.SGDEdist.SGDEdist::var().

◆ incrementQuadraturePoints

size_t sgpp::combigrid::LTwoScalarProductHashMapNakBsplineBoundaryCombigrid::incrementQuadraturePoints
protected

◆ innerProducts

std::map<MultiIndex, double> sgpp::combigrid::LTwoScalarProductHashMapNakBsplineBoundaryCombigrid::innerProducts
protected

Referenced by mult().

◆ isCustomWeightFunction

bool sgpp::combigrid::LTwoScalarProductHashMapNakBsplineBoundaryCombigrid::isCustomWeightFunction
protected

◆ numAdditionalPoints

size_t sgpp::combigrid::LTwoScalarProductHashMapNakBsplineBoundaryCombigrid::numAdditionalPoints
protected

◆ weightFunctionsCollection

sgpp::combigrid::WeightFunctionsCollection sgpp::combigrid::LTwoScalarProductHashMapNakBsplineBoundaryCombigrid::weightFunctionsCollection
protected

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