SG++-Doxygen-Documentation
Loading...
Searching...
No Matches
sgpp::combigrid::OperationUPCombinationGrid Class Reference

Operation for applying 1D OperationPole operators on all poles of all full grids of some combination grid, in all dimensions via the unidirectional principle (UP). More...

#include <OperationUPCombinationGrid.hpp>

Public Member Functions

void apply (std::vector< base::DataVector > &values)
 Apply the unidirectional principle in-place.
 
const CombinationGridgetGrid () const
 
const std::vector< OperationPole * > & getOperationPole () const
 
 OperationUPCombinationGrid (const CombinationGrid &grid, const std::vector< OperationPole * > operationPole)
 Constructor.
 
 OperationUPCombinationGrid (const CombinationGrid &grid, const std::vector< std::unique_ptr< OperationPole > > &operationPole)
 Constructor.
 
 OperationUPCombinationGrid (const CombinationGrid &grid, OperationPole &operationPole)
 Constructor for the special case where the same OperationPole should be used for all dimensions.
 
void setGrid (const CombinationGrid &grid)
 
void setOperationPole (const std::vector< OperationPole * > &operationPole)
 

Protected Attributes

CombinationGrid grid
 combination grid
 
std::vector< OperationPole * > operationPole
 vector of pointers to 1D pole operators (do not delete before this object)
 

Detailed Description

Operation for applying 1D OperationPole operators on all poles of all full grids of some combination grid, in all dimensions via the unidirectional principle (UP).

Constructor & Destructor Documentation

◆ OperationUPCombinationGrid() [1/3]

sgpp::combigrid::OperationUPCombinationGrid::OperationUPCombinationGrid ( const CombinationGrid grid,
const std::vector< std::unique_ptr< OperationPole > > &  operationPole 
)

Constructor.

Parameters
gridcombination grid
operationPolevector of unique_ptr to 1D pole operators (do not destruct before this object)

References operationPole.

◆ OperationUPCombinationGrid() [2/3]

sgpp::combigrid::OperationUPCombinationGrid::OperationUPCombinationGrid ( const CombinationGrid grid,
const std::vector< OperationPole * >  operationPole 
)

Constructor.

Parameters
gridcombination grid
operationPolevector of pointers to 1D pole operators (do not delete before this object)

◆ OperationUPCombinationGrid() [3/3]

sgpp::combigrid::OperationUPCombinationGrid::OperationUPCombinationGrid ( const CombinationGrid grid,
OperationPole operationPole 
)

Constructor for the special case where the same OperationPole should be used for all dimensions.

Parameters
gridcombination grid
operationPole1D pole operator (do not destruct before this object)

Member Function Documentation

◆ apply()

void sgpp::combigrid::OperationUPCombinationGrid::apply ( std::vector< base::DataVector > &  values)

Apply the unidirectional principle in-place.

Parameters
[in,out]valuesvector of vectors with values on the full grids, every vector corresponds to one full grid of the combination grid, every vector has the same size as the number of grid points of the respective full grid (the order of DataVector entries is given by IndexVectorRange)

References sgpp::combigrid::OperationUPFullGrid::apply(), sgpp::combigrid::CombinationGrid::getFullGrids(), grid, operationPole, and sgpp::combigrid::OperationUPFullGrid::setGrid().

◆ getGrid()

◆ getOperationPole()

const std::vector< OperationPole * > & sgpp::combigrid::OperationUPCombinationGrid::getOperationPole ( ) const
Returns
vector of pointers to 1D pole operators (do not delete before this object)

References operationPole.

◆ setGrid()

void sgpp::combigrid::OperationUPCombinationGrid::setGrid ( const CombinationGrid grid)
Parameters
gridcombination grid

References grid.

Referenced by python.controller.CheckpointController.CheckpointController::setLearner().

◆ setOperationPole()

void sgpp::combigrid::OperationUPCombinationGrid::setOperationPole ( const std::vector< OperationPole * > &  operationPole)
Parameters
operationPolevector of pointers to 1D pole operators (do not delete before this object)

References operationPole.

Member Data Documentation

◆ grid

CombinationGrid sgpp::combigrid::OperationUPCombinationGrid::grid
protected

combination grid

Referenced by python.uq.dists.SGDEdist.SGDEdist::__str__(), apply(), 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(), getGrid(), python.uq.learner.SimulationLearner.SimulationLearner::getGrid(), python.uq.learner.SimulationLearner.SimulationLearner::getLearner(), python.learner.Learner.Learner::learnData(), python.learner.Learner.Learner::learnDataWithFolding(), python.uq.learner.Regressor.Regressor::learnDataWithFolding(), python.learner.Learner.Learner::learnDataWithTest(), python.uq.learner.Regressor.Regressor::learnDataWithTest(), python.controller.CheckpointController.CheckpointController::loadAll(), python.uq.operations.forcePositivity.operationMakePositive.OperationMakePositive::makePositive(), python.uq.operations.forcePositivity.operationMakePositiveFast.OperationMakePositiveFast::makePositive(), python.uq.dists.SGDEdist.SGDEdist::mean(), 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(), setGrid(), python.controller.CheckpointController.CheckpointController::setGrid(), python.learner.Learner.Learner::setGrid(), python.uq.learner.Learner.Learner::setGrid(), python.uq.operations.forcePositivity.localFullGridSearch.LocalFullGrid::split(), python.uq.dists.SGDEdist.SGDEdist::toJson(), and python.uq.dists.SGDEdist.SGDEdist::var().

◆ operationPole

std::vector<OperationPole*> sgpp::combigrid::OperationUPCombinationGrid::operationPole
protected

vector of pointers to 1D pole operators (do not delete before this object)

Referenced by apply(), getOperationPole(), OperationUPCombinationGrid(), and setOperationPole().


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