SG++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
sgpp::op_factory Namespace Reference

Functions

base::OperationConvertcreateOperationConvert (base::Grid &grid)
 Factory method, returning an OperationConvert for the grid at hand. More...
 
datadriven::OperationDensityConditionalcreateOperationDensityConditional (base::Grid &grid)
 Factory method, returning an OperationDensityConditional for the grid. More...
 
datadriven::OperationDensityConditionalKDEcreateOperationDensityConditionalKDE (datadriven::GaussianKDE &kde)
 Factory method, returning an OperationDensityConditionalKDE for the kernel density. More...
 
datadriven::OperationDensityMarginalizecreateOperationDensityMarginalize (base::Grid &grid)
 Factory method, returning an OperationDensityMarginalize for the grid. More...
 
datadriven::OperationDensityMarginalizeKDEcreateOperationDensityMarginalizeKDE (datadriven::GaussianKDE &kde)
 Factory method, returning an OperationDensityMarginalizeKDE for the kernel density. More...
 
datadriven::OperationDensityMargTo1DcreateOperationDensityMargTo1D (base::Grid &grid)
 Factory method, returning an OperationDensityMargTo1D for the grid. More...
 
datadriven::OperationDensityRejectionSamplingcreateOperationDensityRejectionSampling (base::Grid &grid)
 Factory method, returning an OperationDensityRejectionSampling for the grid. More...
 
datadriven::OperationDensitySamplingcreateOperationDensitySampling (base::Grid &grid)
 Factory method, returning an OperationDensitySampling for the grid. More...
 
datadriven::OperationDensitySampling1DcreateOperationDensitySampling1D (base::Grid &grid)
 Factory method, returning an OperationDensitySampling1D for the grid. More...
 
base::OperationEvalcreateOperationEval (base::Grid &grid)
 Factory method, returning an OperationEval for the grid at hand. More...
 
base::OperationEvalGradientcreateOperationEvalGradientNaive (base::Grid &grid)
 Factory method, returning an OperationEvalGradient for the grid at hand. More...
 
base::OperationEvalHessiancreateOperationEvalHessianNaive (base::Grid &grid)
 Factory method, returning an OperationEvalHessian for the grid at hand. More...
 
base::OperationEvalcreateOperationEvalNaive (base::Grid &grid)
 Factory method, returning an OperationEval for the grid at hand. More...
 
base::OperationEvalPartialDerivativecreateOperationEvalPartialDerivativeNaive (base::Grid &grid)
 Factory method, returning an OperationEvalPartialDerivative for the grid at hand. More...
 
base::OperationFirstMomentcreateOperationFirstMoment (base::Grid &grid)
 Factory method, returning an OperationFirstMoment for the grid at hand. More...
 
base::OperationHierarchisationcreateOperationHierarchisation (base::Grid &grid)
 Factory method, returning an OperationHierarchisation for the grid at hand. More...
 
base::OperationMatrixcreateOperationIdentity (base::Grid &grid)
 Factory method, returning an OperationIdentity for the grid at hand. More...
 
datadriven::OperationInverseRosenblattTransformationcreateOperationInverseRosenblattTransformation (base::Grid &grid)
 Factory method, returning an OperationInverseRosenblattTransformation for the grid. More...
 
datadriven::OperationTransformation1DcreateOperationInverseRosenblattTransformation1D (base::Grid &grid)
 Factory method, returning an OperationInverseRosenblattTransformation1D for the grid. More...
 
datadriven::OperationInverseRosenblattTransformationKDEcreateOperationInverseRosenblattTransformationKDE (datadriven::GaussianKDE &kde)
 Factory method, returning an OperationInverseRosenblattTransformationKDE for the kde. More...
 
base::OperationMatrixcreateOperationLaplace (base::Grid &grid)
 Factory method, returning an OperationLaplace (OperationMatrix) for the grid at hand. More...
 
base::OperationMatrixcreateOperationLaplace (base::Grid &grid, sgpp::base::DataVector &coef)
 Factory method, returning an OperationLaplace (OperationMatrix) for the grid at hand. More...
 
base::OperationMatrixcreateOperationLaplaceEnhanced (base::Grid &grid)
 Factory method, returning an OperationLaplace (OperationMatrix) for the grid at hand. More...
 
base::OperationMatrixcreateOperationLaplaceEnhanced (base::Grid &grid, sgpp::base::DataVector &coef)
 Factory method, returning an OperationLaplace (OperationMatrix) for the grid at hand. More...
 
base::OperationMatrixcreateOperationLTwoDotExplicit (base::Grid &grid)
 Factory method, returning an OperationLTwoDotExplicit (OperationMatrix) for the grid at hand. More...
 
base::OperationMatrixcreateOperationLTwoDotExplicit (base::DataMatrix *m, base::Grid &grid)
 Factory method, returning an OperationLTwoDotExplicit (OperationMatrix) for the grid at hand. More...
 
base::OperationMatrixcreateOperationLTwoDotProduct (base::Grid &grid)
 Factory method, returning an OperationLTwoDotProduct (OperationMatrix) for the grid at hand. More...
 
base::OperationMultipleEvalcreateOperationMultipleEval (base::Grid &grid, base::DataMatrix &dataset, sgpp::datadriven::OperationMultipleEvalConfiguration &configuration)
 Factory method, returning an OperationMultipleEval for the grid. More...
 
base::OperationMultipleEvalcreateOperationMultipleEval (base::Grid &grid, base::DataMatrix &dataset)
 Factory method, returning an OperationMultipleEval for the grid at hand. More...
 
optimization::OperationMultipleHierarchisationcreateOperationMultipleHierarchisation (base::Grid &grid)
 Creates a OperationMultipleHierarchisation for the given sgpp::optimization grid. More...
 
base::OperationQuadraturecreateOperationQuadrature (base::Grid &grid)
 Factory method, returning an OperationQuadrature for the grid at hand. More...
 
quadrature::OperationQuadratureMCAdvancedcreateOperationQuadratureMCAdvanced (base::Grid &grid, size_t numberOfSamples, std::uint64_t seed=std::mt19937_64::default_seed)
 Creates an OperationQuadratureMCAdvanced. More...
 
base::OperationMatrixcreateOperationRegularizationDiagonal (base::Grid &grid, int mode, double k)
 Factory method, returning an OperationRegularizationDiagonal for the grid at hand. More...
 
datadriven::OperationRosenblattTransformationcreateOperationRosenblattTransformation (base::Grid &grid)
 Factory method, returning an OperationRosenblattTransformation for the grid. More...
 
datadriven::OperationTransformation1DcreateOperationRosenblattTransformation1D (base::Grid &grid)
 Factory method, returning an OperationRosenblattTransformation for the grid. More...
 
datadriven::OperationRosenblattTransformationKDEcreateOperationRosenblattTransformationKDE (datadriven::GaussianKDE &kde)
 Factory method, returning an OperationRosenblattTransformationKDE for the kde. More...
 
base::OperationSecondMomentcreateOperationSecondMoment (base::Grid &grid)
 Factory method, returning an OperationSecondMoment for the grid at hand. More...
 
datadriven::OperationTestcreateOperationTest (base::Grid &grid)
 Factory method, returning an OperationTest for the grid at hand. More...
 

Function Documentation

base::OperationConvert * sgpp::op_factory::createOperationConvert ( base::Grid &  grid)

Factory method, returning an OperationConvert for the grid at hand.

Note: object has to be freed after use.

Parameters
gridGrid which is to be used for conversion
Returns
Pointer to the new OperationConvert object for the Grid grid

References sgpp::base::Grid::getStorage(), sgpp::base::Grid::getType(), and sgpp::base::Prewavelet.

datadriven::OperationDensityConditional * sgpp::op_factory::createOperationDensityConditional ( base::Grid &  grid)

Factory method, returning an OperationDensityConditional for the grid.

Parameters
gridGrid which is to be used for the operation
Returns
Pointer to new OperationDensityConditional for the Grid grid

References sgpp::base::Grid::getType(), and sgpp::base::Linear.

Referenced by sgpp::datadriven::OperationDensitySamplingLinear::doSampling_in_next_dim(), sgpp::datadriven::OperationRosenblattTransformationLinear::doTransformation_in_next_dim(), and sgpp::datadriven::OperationInverseRosenblattTransformationLinear::doTransformation_in_next_dim().

datadriven::OperationDensityConditionalKDE * sgpp::op_factory::createOperationDensityConditionalKDE ( datadriven::GaussianKDE &  kde)

Factory method, returning an OperationDensityConditionalKDE for the kernel density.

Parameters
kdekernel density which is to be used for the operation
Returns
Pointer to new OperationDensityConditionalKDE
datadriven::OperationDensityMarginalize * sgpp::op_factory::createOperationDensityMarginalize ( base::Grid &  grid)

Factory method, returning an OperationDensityMarginalize for the grid.

Parameters
gridGrid which is to be used for the operation
Returns
Pointer to new OperationDensityMarginalize for the Grid grid

References sgpp::base::Grid::getType(), and sgpp::base::Linear.

Referenced by sgpp::datadriven::OperationDensityMargTo1DLinear::marg_next_dim().

datadriven::OperationDensityMarginalizeKDE * sgpp::op_factory::createOperationDensityMarginalizeKDE ( datadriven::GaussianKDE &  kde)

Factory method, returning an OperationDensityMarginalizeKDE for the kernel density.

Parameters
kdekernel density which is to be used for the operation
Returns
Pointer to new OperationDensityMarginalizeKDE

Referenced by sgpp::datadriven::OperationDensityConditionalKDE::condToDimX(), sgpp::datadriven::GaussianKDE::cov(), and sgpp::datadriven::OperationDensityConditionalKDE::doConditional().

datadriven::OperationDensityRejectionSampling * sgpp::op_factory::createOperationDensityRejectionSampling ( base::Grid &  grid)

Factory method, returning an OperationDensityRejectionSampling for the grid.

Parameters
gridGrid which is to be used for the operation
Returns
Pointer to new OperationDensitySampling1D for the Grid grid

References sgpp::base::Grid::getType(), and sgpp::base::Linear.

datadriven::OperationDensitySampling * sgpp::op_factory::createOperationDensitySampling ( base::Grid &  grid)

Factory method, returning an OperationDensitySampling for the grid.

Parameters
gridGrid which is to be used for the operation
Returns
Pointer to new OperationDensitySampling1D for the Grid grid

References sgpp::base::Grid::getType(), and sgpp::base::Linear.

datadriven::OperationDensitySampling1D * sgpp::op_factory::createOperationDensitySampling1D ( base::Grid &  grid)

Factory method, returning an OperationDensitySampling1D for the grid.

Parameters
gridGrid which is to be used for the operation
Returns
Pointer to new OperationDensitySampling1D for the Grid grid

References sgpp::base::Grid::getType(), and sgpp::base::Linear.

Referenced by sgpp::datadriven::OperationDensitySamplingLinear::doSampling(), and sgpp::datadriven::OperationDensitySamplingLinear::doSampling_in_next_dim().

base::OperationEval * sgpp::op_factory::createOperationEval ( base::Grid &  grid)

Factory method, returning an OperationEval for the grid at hand.

Note: object has to be freed after use.

Parameters
gridGrid which is to be used
Returns
Pointer to the new OperationEval object for the Grid grid

References python.uq.operations.sparse_grid::getDegree(), sgpp::base::Grid::getStorage(), sgpp::base::Grid::getType(), sgpp::base::Linear, sgpp::base::LinearBoundary, sgpp::base::LinearL0Boundary, sgpp::base::LinearStretched, sgpp::base::LinearStretchedBoundary, sgpp::base::LinearTruncatedBoundary, sgpp::base::ModLinear, sgpp::base::ModPoly, sgpp::base::Periodic, sgpp::base::Poly, sgpp::base::PolyBoundary, sgpp::base::Prewavelet, and sgpp::base::SquareRoot.

Referenced by python.learner.Learner.Learner::applyData(), sgpp::datadriven::PiecewiseConstantSmoothedRegressionMetaLearner::calculateMSE(), python.uq.operations.forcePositivity.interpolateParents.InterpolateParents::computeMean(), sgpp::datadriven::AlgorithmAdaBoostBase::doAdaBoostR2(), sgpp::datadriven::AlgorithmAdaBoostBase::doAdaBoostRT(), sgpp::datadriven::AlgorithmAdaBoostBase::doDiscreteAdaBoost(), sgpp::base::OperationQuadratureMC::doQuadratureL2Error(), sgpp::quadrature::OperationQuadratureMCAdvanced::doQuadratureL2Error(), sgpp::datadriven::AlgorithmAdaBoostBase::doRealAdaBoost(), sgpp::datadriven::OperationDensityRejectionSamplingLinear::doSampling(), sgpp::datadriven::OperationDensitySampling1DLinear::doSampling1D(), sgpp::datadriven::OperationRosenblattTransformation1DLinear::doTransformation1D(), sgpp::datadriven::OperationInverseRosenblattTransformation1DLinear::doTransformation1D(), sgpp::datadriven::OperationInverseRosenblattTransformationLinear::doTransformation1D(), sgpp::datadriven::OperationRosenblattTransformationLinear::doTransformation1D(), python.uq.operations.sparse_grid::evalSGFunction(), sgpp::pde::PDESolver::evaluatePoint(), sgpp::datadriven::ZeroCrossingRefinementFunctor::getEvalVector(), python.uq.operations.forcePositivity.operationMakePositive.OperationMakePositive::lookupFullGridPoints(), sgpp::datadriven::GridPointBasedRefinementFunctor::operator()(), sgpp::datadriven::LearnerSGDE::pdf(), python.uq.plot.plotGrid::plotGrid(), sgpp::datadriven::GridPointBasedRefinementFunctor::preComputeEvaluations(), sgpp::datadriven::ZeroCrossingRefinementFunctor::preComputeEvaluations(), sgpp::datadriven::BatchLearner::predict(), sgpp::base::GridPrinterForStretching::printGrid(), sgpp::base::GridPrinter::printGrid(), sgpp::base::GridPrinter::printGridDomain(), sgpp::base::GridPrinterForStretching::printGridDomainStretching(), python.utils.json::read(), sgpp::datadriven::LearnerPiecewiseConstantSmoothedRegression::train(), sgpp::datadriven::LearnerSGDE::train(), and python.tools::writeGnuplot().

base::OperationEvalGradient * sgpp::op_factory::createOperationEvalGradientNaive ( base::Grid &  grid)

Factory method, returning an OperationEvalGradient for the grid at hand.

Implementations of OperationEvalGradientNaive returned by this function should use a "naive" method for evaluating sparse grid function gradients, e.g. evaluate all basis functions by brute force. Note: object has to be freed after use.

Parameters
gridGrid which is to be used
Returns
Pointer to the new OperationEvalGradient object for the Grid grid

References sgpp::base::Bspline, sgpp::base::BsplineBoundary, sgpp::base::BsplineClenshawCurtis, sgpp::base::FundamentalSpline, python.uq.operations.sparse_grid::getDegree(), sgpp::base::Grid::getStorage(), sgpp::base::Grid::getType(), sgpp::base::ModBspline, sgpp::base::ModBsplineClenshawCurtis, sgpp::base::ModFundamentalSpline, sgpp::base::ModWavelet, sgpp::base::Wavelet, and sgpp::base::WaveletBoundary.

base::OperationEvalHessian * sgpp::op_factory::createOperationEvalHessianNaive ( base::Grid &  grid)

Factory method, returning an OperationEvalHessian for the grid at hand.

Implementations of OperationEvalHessianNaive returned by this function should use a "naive" method for evaluating sparse grid function Hessians, e.g. evaluate all basis functions by brute force. Note: object has to be freed after use.

Parameters
gridGrid which is to be used
Returns
Pointer to the new OperationEvalHessian object for the Grid grid

References sgpp::base::Bspline, sgpp::base::BsplineBoundary, sgpp::base::BsplineClenshawCurtis, sgpp::base::FundamentalSpline, python.uq.operations.sparse_grid::getDegree(), sgpp::base::Grid::getStorage(), sgpp::base::Grid::getType(), sgpp::base::ModBspline, sgpp::base::ModBsplineClenshawCurtis, sgpp::base::ModFundamentalSpline, sgpp::base::ModWavelet, sgpp::base::Wavelet, and sgpp::base::WaveletBoundary.

base::OperationEval * sgpp::op_factory::createOperationEvalNaive ( base::Grid &  grid)

Factory method, returning an OperationEval for the grid at hand.

In contrast to OperationEval, implementations of OperationEval returned by this function should use a "naive" method for evaluating sparse grid functions, e.g. evaluate all basis functions by brute force. Note: object has to be freed after use.

Parameters
gridGrid which is to be used
Returns
Pointer to the new OperationEval object for the Grid grid

References sgpp::base::Bspline, sgpp::base::BsplineBoundary, sgpp::base::BsplineClenshawCurtis, sgpp::base::FundamentalSpline, python.uq.operations.sparse_grid::getDegree(), sgpp::base::Grid::getStorage(), sgpp::base::Grid::getType(), sgpp::base::Linear, sgpp::base::LinearBoundary, sgpp::base::LinearClenshawCurtis, sgpp::base::ModBspline, sgpp::base::ModBsplineClenshawCurtis, sgpp::base::ModFundamentalSpline, sgpp::base::ModLinear, sgpp::base::ModPoly, sgpp::base::ModWavelet, sgpp::base::Poly, sgpp::base::PolyBoundary, sgpp::base::Wavelet, and sgpp::base::WaveletBoundary.

base::OperationEvalPartialDerivative * sgpp::op_factory::createOperationEvalPartialDerivativeNaive ( base::Grid &  grid)

Factory method, returning an OperationEvalPartialDerivative for the grid at hand.

Implementations of OperationEvalPartialDerivativeNaive returned by this function should use a "naive" method for evaluating sparse grid function partial derivatives, e.g. evaluate all basis functions by brute force. Note: object has to be freed after use.

Parameters
gridGrid which is to be used
Returns
Pointer to the new OperationEvalPartialDerivative object for the Grid grid

References sgpp::base::Bspline, sgpp::base::BsplineBoundary, sgpp::base::BsplineClenshawCurtis, sgpp::base::FundamentalSpline, python.uq.operations.sparse_grid::getDegree(), sgpp::base::Grid::getStorage(), sgpp::base::Grid::getType(), sgpp::base::ModBspline, sgpp::base::ModBsplineClenshawCurtis, sgpp::base::ModFundamentalSpline, sgpp::base::ModWavelet, sgpp::base::Wavelet, and sgpp::base::WaveletBoundary.

base::OperationFirstMoment * sgpp::op_factory::createOperationFirstMoment ( base::Grid &  grid)

Factory method, returning an OperationFirstMoment for the grid at hand.

Note: object has to be freed after use.

Parameters
gridGrid which is to be used for quadrature
Returns
Pointer to the new OperationFirstMoment for the Grid grid

References sgpp::base::Grid::getStorage(), sgpp::base::Grid::getType(), and sgpp::base::Linear.

Referenced by python.uq.dists.SGDEdist.SGDEdist::mean(), and sgpp::datadriven::LearnerSGDE::mean().

base::OperationHierarchisation * sgpp::op_factory::createOperationHierarchisation ( base::Grid &  grid)

Factory method, returning an OperationHierarchisation for the grid at hand.

Note: object has to be freed after use.

Parameters
gridGrid which is to be used for hierarchisation
Returns
Pointer to the new OperationHierarchisation object for the Grid grid

References sgpp::base::FundamentalSpline, python.uq.operations.sparse_grid::getDegree(), sgpp::base::Grid::getStorage(), sgpp::base::Grid::getType(), sgpp::base::Linear, sgpp::base::LinearBoundary, sgpp::base::LinearL0Boundary, sgpp::base::LinearStencil, sgpp::base::LinearStretched, sgpp::base::LinearStretchedBoundary, sgpp::base::LinearTruncatedBoundary, sgpp::base::ModFundamentalSpline, sgpp::base::ModLinear, sgpp::base::ModLinearStencil, sgpp::base::ModPoly, sgpp::base::Poly, sgpp::base::PolyBoundary, sgpp::base::Prewavelet, and sgpp::base::SquareRoot.

Referenced by python.uq.operations.sparse_grid::addConst(), sgpp::solver::OperationParabolicPDESolverSystem::getGridCoefficientsForSC(), python.uq.operations.sparse_grid::hierarchize(), sgpp::pde::PoissonEquationSolver::initGridWithExpHeat(), sgpp::pde::PoissonEquationSolver::initGridWithExpHeatFullDomain(), sgpp::pde::PoissonEquationSolver::initGridWithSmoothHeat(), sgpp::pde::HeatEquationSolver::initGridWithSmoothHeat(), sgpp::pde::HeatEquationSolverWithStretching::initGridWithSmoothHeat(), sgpp::pde::PoissonEquationSolver::initGridWithSmoothHeatFullDomain(), sgpp::base::GridPrinterForStretching::printSparseGrid(), sgpp::base::GridPrinter::printSparseGrid(), sgpp::base::GridPrinterForStretching::printSparseGridExpTransform(), sgpp::base::GridPrinter::printSparseGridExpTransform(), and python.utils.json::read().

datadriven::OperationInverseRosenblattTransformation * sgpp::op_factory::createOperationInverseRosenblattTransformation ( base::Grid &  grid)

Factory method, returning an OperationInverseRosenblattTransformation for the grid.

Parameters
gridGrid which is to be used for the operation
Returns
Pointer to new OperationInverseRosenblattTransformation for the Grid grid

References sgpp::base::Grid::getType(), and sgpp::base::Linear.

Referenced by python.uq.dists.SGDEdist.SGDEdist::ppf().

datadriven::OperationTransformation1D * sgpp::op_factory::createOperationInverseRosenblattTransformation1D ( base::Grid &  grid)

Factory method, returning an OperationInverseRosenblattTransformation1D for the grid.

Parameters
gridGrid which is to be used for the operation
Returns
Pointer to new OperationInverseRosenblattTransformation1D for the Grid grid

References sgpp::base::Grid::getType(), and sgpp::base::Linear.

Referenced by python.uq.dists.SGDEdist.SGDEdist::ppf().

datadriven::OperationInverseRosenblattTransformationKDE * sgpp::op_factory::createOperationInverseRosenblattTransformationKDE ( datadriven::GaussianKDE &  kde)

Factory method, returning an OperationInverseRosenblattTransformationKDE for the kde.

Parameters
kdeGaussianKDE for which the inverse Rosenblatt transformation should be computed
Returns
Pointer to new OperationInverseRosenblattTransformationKDE for the kde

Referenced by python.uq.dists.GaussianKDEDist.GaussianKDEDist::ppf(), and python.uq.dists.LibAGFDist.LibAGFDist::ppf().

base::OperationMatrix * sgpp::op_factory::createOperationLaplace ( base::Grid &  grid,
sgpp::base::DataVector coef 
)

Factory method, returning an OperationLaplace (OperationMatrix) for the grid at hand.

Note: object has to be freed after use.

Parameters
gridGrid which is to be used
coefCoefficient vector for OperationLaplace
Returns
Pointer to the new OperationMatrix object for the Grid grid

References sgpp::base::Grid::getStorage(), sgpp::base::Grid::getType(), sgpp::base::Linear, sgpp::base::LinearBoundary, and sgpp::base::LinearL0Boundary.

base::OperationMatrix * sgpp::op_factory::createOperationLaplaceEnhanced ( base::Grid &  grid)

Factory method, returning an OperationLaplace (OperationMatrix) for the grid at hand.

Note: object has to be freed after use.

This Laplacian is implemented by a multi-dimensional sweep operation

Parameters
gridGrid which is to be used
Returns
Pointer to the new OperationMatrix object for the Grid grid

References sgpp::base::Grid::getStorage(), sgpp::base::Grid::getType(), sgpp::base::Linear, sgpp::base::LinearBoundary, and sgpp::base::LinearL0Boundary.

base::OperationMatrix * sgpp::op_factory::createOperationLaplaceEnhanced ( base::Grid &  grid,
sgpp::base::DataVector coef 
)

Factory method, returning an OperationLaplace (OperationMatrix) for the grid at hand.

Note: object has to be freed after use.

This Laplacian is implemented by a multi-dimensional sweep operation

Parameters
gridGrid which is to be used
coefCoefficient vector for OperationLaplace
Returns
Pointer to the new OperationMatrix object for the Grid grid

References sgpp::base::Grid::getStorage(), sgpp::base::Grid::getType(), sgpp::base::Linear, sgpp::base::LinearBoundary, and sgpp::base::LinearL0Boundary.

base::OperationMatrix * sgpp::op_factory::createOperationLTwoDotExplicit ( base::Grid &  grid)
base::OperationMatrix * sgpp::op_factory::createOperationLTwoDotExplicit ( base::DataMatrix *  m,
base::Grid &  grid 
)

Factory method, returning an OperationLTwoDotExplicit (OperationMatrix) for the grid at hand.

Note: object has to be freed after use. The DataMatrix m is used to store the the matrix and is not destroyed if the OperationMatrix is destroyed.

Parameters
gridGrid which is to be used
mDataMatrix in which the data is stored
Returns
Pointer to the new OperationMatrix object for the Grid grid

References sgpp::base::Grid::getType(), sgpp::base::Linear, sgpp::base::LinearL0Boundary, and sgpp::base::Periodic.

base::OperationMultipleEval * sgpp::op_factory::createOperationMultipleEval ( base::Grid &  grid,
base::DataMatrix &  dataset 
)

Factory method, returning an OperationMultipleEval for the grid at hand.

Note: object has to be freed after use.

Parameters
gridGrid which is to be used
datasetThe dataset (DataMatrix, one datapoint per row) that is to be evaluated for the sparse grid function
Returns
Pointer to the new OperationMultipleEval object for the Grid grid

References python.uq.operations.sparse_grid::getDegree(), sgpp::base::Grid::getType(), sgpp::base::Linear, sgpp::base::LinearBoundary, sgpp::base::LinearL0Boundary, sgpp::base::LinearStretched, sgpp::base::LinearStretchedBoundary, sgpp::base::ModLinear, sgpp::base::ModPoly, sgpp::base::Periodic, sgpp::base::Poly, sgpp::base::PolyBoundary, and sgpp::base::Prewavelet.

Referenced by python.learner.LearnerBuilder.LearnerBuilder::andGetResult(), sgpp::datadriven::DataBasedRefinementFunctor::computeH(), createOperationMultipleEval(), python.uq.operations.sparse_grid::dehierarchize(), python.uq.operations.sparse_grid::dehierarchizeList(), sgpp::datadriven::DensitySystemMatrix::DensitySystemMatrix(), sgpp::datadriven::DMSystemMatrix::DMSystemMatrix(), sgpp::datadriven::DMWeightMatrix::DMWeightMatrix(), sgpp::base::OperationQuadratureMC::doQuadrature(), sgpp::quadrature::OperationQuadratureMCAdvanced::doQuadrature(), sgpp::datadriven::OperationDensityRejectionSamplingLinear::doSampling(), python.uq.operations.sparse_grid::evalSGFunctionMulti(), sgpp::pde::PDESolver::evaluateCuboid(), sgpp::datadriven::DMSystemMatrix::generateb(), 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(), main(), sgpp::datadriven::DMSystemMatrix::mult(), sgpp::datadriven::LearnerLeastSquaresIdentity::multTranspose(), sgpp::datadriven::LearnerBase::multTranspose(), sgpp::datadriven::LearnerSGDE::pdf(), sgpp::datadriven::LearnerLeastSquaresIdentity::predict(), sgpp::datadriven::LearnerBaseSP::predict(), sgpp::datadriven::LearnerBase::predict(), sgpp::datadriven::SystemMatrixLeastSquaresIdentity::setImplementation(), sgpp::datadriven::SystemMatrixLeastSquaresIdentity::SystemMatrixLeastSquaresIdentity(), and sgpp::datadriven::LearnerLeastSquaresIdentity::testRegular().

optimization::OperationMultipleHierarchisation * sgpp::op_factory::createOperationMultipleHierarchisation ( base::Grid &  grid)
base::OperationQuadrature * sgpp::op_factory::createOperationQuadrature ( base::Grid &  grid)

Factory method, returning an OperationQuadrature for the grid at hand.

Note: object has to be freed after use.

Parameters
gridGrid which is to be used for quadrature
Returns
Pointer to the new OperationQuadrature for the Grid grid

References python.uq.operations.sparse_grid::getDegree(), sgpp::base::Grid::getStorage(), sgpp::base::Grid::getType(), sgpp::base::Linear, sgpp::base::LinearBoundary, sgpp::base::LinearL0Boundary, sgpp::base::Poly, and sgpp::base::PolyBoundary.

Referenced by python.uq.quadrature.sparse_grid::doQuadrature(), and python.uq.dists.optimization.estimateDensitySGDE::estimateDensitySGDE().

quadrature::OperationQuadratureMCAdvanced * sgpp::op_factory::createOperationQuadratureMCAdvanced ( base::Grid &  grid,
size_t  numberOfSamples,
std::uint64_t  seed = std::mt19937_64::default_seed 
)

Creates an OperationQuadratureMCAdvanced.

Parameters
gridReference to the grid object
numberOfSamplesNumber of Monte Carlo samples
seedCustom seed (defaults to default seed of mt19937_64)
base::OperationMatrix * sgpp::op_factory::createOperationRegularizationDiagonal ( base::Grid &  grid,
int  mode,
double  k 
)

Factory method, returning an OperationRegularizationDiagonal for the grid at hand.

Parameters
gridGrid which is to be used for OperationRegularizationDiagonal
modeMode, specifying which regularization to use. Example: OperationRegularizationDiagonal::HKMIX.
kParameter for \(H^k\)
Returns
Pointer to the new OperationRegularizationDiagonal object for the Grid grid

References sgpp::base::Grid::getStorage(), sgpp::base::Grid::getType(), sgpp::base::Linear, sgpp::base::LinearBoundary, sgpp::base::LinearL0Boundary, and sgpp::base::ModLinear.

datadriven::OperationRosenblattTransformation * sgpp::op_factory::createOperationRosenblattTransformation ( base::Grid &  grid)

Factory method, returning an OperationRosenblattTransformation for the grid.

Parameters
gridGrid which is to be used for the operation
Returns
Pointer to new OperationRosenblattTransformation for the Grid grid

References sgpp::base::Grid::getType(), and sgpp::base::Linear.

Referenced by python.uq.dists.SGDEdist.SGDEdist::cdf().

datadriven::OperationTransformation1D * sgpp::op_factory::createOperationRosenblattTransformation1D ( base::Grid &  grid)

Factory method, returning an OperationRosenblattTransformation for the grid.

Parameters
gridGrid which is to be used for the operation
Returns
Pointer to new OperationRosenblattTransformation1D for the Grid grid

References sgpp::base::Grid::getType(), and sgpp::base::Linear.

Referenced by python.uq.dists.SGDEdist.SGDEdist::cdf().

datadriven::OperationRosenblattTransformationKDE * sgpp::op_factory::createOperationRosenblattTransformationKDE ( datadriven::GaussianKDE &  kde)

Factory method, returning an OperationRosenblattTransformationKDE for the kde.

Parameters
kdeGaussianKDE for which the Rosenblatt transformation should be computed
Returns
Pointer to new OperationRosenblattTransformationKDE for the kde

Referenced by python.uq.dists.GaussianKDEDist.GaussianKDEDist::cdf(), and python.uq.dists.LibAGFDist.LibAGFDist::cdf().

base::OperationSecondMoment * sgpp::op_factory::createOperationSecondMoment ( base::Grid &  grid)

Factory method, returning an OperationSecondMoment for the grid at hand.

Note: object has to be freed after use.

Parameters
gridGrid which is to be used for quadrature
Returns
Pointer to the new OperationSecondMoment for the Grid grid

References sgpp::base::Grid::getStorage(), sgpp::base::Grid::getType(), and sgpp::base::Linear.

Referenced by python.uq.dists.SGDEdist.SGDEdist::var(), and sgpp::datadriven::LearnerSGDE::variance().

datadriven::OperationTest * sgpp::op_factory::createOperationTest ( base::Grid &  grid)

Factory method, returning an OperationTest for the grid at hand.

Parameters
gridGrid which is to be used for OperationTest
Returns
Pointer to the new OperationTest object for the Grid grid

References sgpp::base::Grid::getStorage(), sgpp::base::Grid::getType(), sgpp::base::Linear, sgpp::base::LinearBoundary, sgpp::base::LinearL0Boundary, sgpp::base::LinearStretched, sgpp::base::LinearStretchedBoundary, sgpp::base::ModBspline, sgpp::base::ModLinear, sgpp::base::ModPoly, sgpp::base::ModWavelet, sgpp::base::Poly, and sgpp::base::Prewavelet.

Referenced by python.learner.Classifier.Classifier::evalError().