SG++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
sgpp::base::Grid Class Referenceabstract

abstract base class for all types grids used in sgpp the class gives pure virtual function definitions that have to be implemented by all types of grids More...

#include <Grid.hpp>

Inheritance diagram for sgpp::base::Grid:
sgpp::base::BsplineBoundaryGrid sgpp::base::BsplineClenshawCurtisGrid sgpp::base::BsplineGrid sgpp::base::FundamentalSplineGrid sgpp::base::GridStencil sgpp::base::LinearBoundaryGrid sgpp::base::LinearClenshawCurtisGrid sgpp::base::LinearGrid sgpp::base::LinearL0BoundaryGrid sgpp::base::LinearStretchedBoundaryGrid sgpp::base::LinearStretchedGrid sgpp::base::LinearTruncatedBoundaryGrid sgpp::base::ModBsplineClenshawCurtisGrid sgpp::base::ModBsplineGrid sgpp::base::ModFundamentalSplineGrid sgpp::base::ModLinearGrid sgpp::base::ModPolyGrid sgpp::base::ModWaveletGrid sgpp::base::PeriodicGrid sgpp::base::PolyBoundaryGrid sgpp::base::PolyGrid sgpp::base::PrewaveletGrid sgpp::base::SquareRootGrid sgpp::base::WaveletBoundaryGrid sgpp::base::WaveletGrid

Public Member Functions

std::vector< size_t > getAlgorithmicDimensions ()
 returns the algorithmic dimensions (the dimensions in which the Up Down operations should be applied) More...
 
virtual const SBasisgetBasis ()=0
 Returns the Basis class associated with the grid. More...
 
virtual BoundingBoxgetBoundingBox ()
 gets a reference to the GridStorage's BoundingsBox object More...
 
size_t getDimension ()
 Returns the number of dimensions. More...
 
virtual GridGeneratorgetGenerator ()=0
 
size_t getSize ()
 Returns the number of points on the grid. More...
 
virtual GridStoragegetStorage ()
 gets a reference to the GridStorage object More...
 
virtual StretchinggetStretching ()
 gets a reference to the GridStorage's Stretching object More...
 
virtual sgpp::base::GridType getType ()=0
 Returns a string that identifies the grid type uniquely. More...
 
void insertPoint (size_t dim, unsigned int levels[], unsigned int indices[], bool isLeaf)
 Insert one point to the grid. More...
 
void refine (DataVector &vector, int numOfPoints)
 Refine grid Refine the given number of points on the grid according to the vector. More...
 
void serialize (std::string &ostr, int version=SERIALIZATION_VERSION)
 Serializes grid to a string. More...
 
virtual void serialize (std::ostream &ostr, int version=SERIALIZATION_VERSION)
 Serializes the grid. More...
 
std::string serialize (int version=SERIALIZATION_VERSION)
 Serializes grid to a string. More...
 
void setAlgorithmicDimensions (std::vector< size_t > newAlgoDims)
 sets the algorithmic dimensions (the dimensions in which the Up Down operations should be applied) More...
 
virtual void setBoundingBox (BoundingBox &boundingBox)
 sets the GridStorage's BoundingsBox pointer to a BoundingBox object More...
 
virtual void setStretching (Stretching &stretching)
 sets the GridStorage's Stretching pointer to a Stretching object More...
 
virtual ~Grid ()
 Desctructor. More...
 

Static Public Member Functions

static GridcreateBsplineBoundaryGrid (size_t dim, size_t degree)
 creates a Bspline trapezoid boundary grid More...
 
static GridcreateBsplineClenshawCurtisGrid (size_t dim, size_t degree)
 creates a Bspline Clenshaw-Curtis grid More...
 
static GridcreateBsplineGrid (size_t dim, size_t degree)
 creates a Bspline grid More...
 
static GridcreateFundamentalSplineGrid (size_t dim, size_t degree)
 creates a fundamental spline grid More...
 
static GridcreateLinearBoundaryGrid (size_t dim, level_t boundaryLevel=1)
 creates a linear boundary grid More...
 
static GridcreateLinearClenshawCurtisGrid (size_t dim)
 creates a linear Clenshaw-Curtis grid More...
 
static GridcreateLinearGrid (size_t dim)
 creates a linear grid without boundaries More...
 
static GridcreateLinearGridStencil (size_t dim)
 creates a stencil for a linear grid without boundaries More...
 
static GridcreateLinearStretchedBoundaryGrid (size_t dim)
 creates a linearstretched truncated boundary grid More...
 
static GridcreateLinearStretchedGrid (size_t dim)
 creates a linear stretched grid without boundaries More...
 
static GridcreateLinearTruncatedBoundaryGrid (size_t dim)
 creates a truncated boundary grid=contains all the gridpoints of the fullgrids which have \(|l|<level and li>=l_user\) More...
 
static GridcreateModBsplineClenshawCurtisGrid (size_t dim, size_t degree)
 creates a mod-Bspline Clenshaw-Curtis grid More...
 
static GridcreateModBsplineGrid (size_t dim, size_t degree)
 creates a mod-Bspline grid More...
 
static GridcreateModFundamentalSplineGrid (size_t dim, size_t degree)
 creates a mod-fundamental spline grid More...
 
static GridcreateModLinearGrid (size_t dim)
 creates a mod linear grid More...
 
static GridcreateModLinearGridStencil (size_t dim)
 creates a stencil for a modified linear grid (without boundaries) More...
 
static GridcreateModPolyGrid (size_t dim, size_t degree)
 creates a poly grid More...
 
static GridcreateModWaveletGrid (size_t dim)
 creates a mod wavelet grid More...
 
static GridcreatePeriodicGrid (size_t dim)
 creates a periodic grid More...
 
static GridcreatePolyBoundaryGrid (size_t dim, size_t degree)
 creates a polynomial grid with truncated boundary More...
 
static GridcreatePolyGrid (size_t dim, size_t degree)
 creates a polynomial grid More...
 
static GridcreatePrewaveletGrid (size_t dim)
 creates a prewavelet grid More...
 
static GridcreateSquareRootGrid (size_t dim)
 creates a square root grid(h-grid) More...
 
static GridcreateWaveletBoundaryGrid (size_t dim)
 creates a wavelet trapezoid boundary grid More...
 
static GridcreateWaveletGrid (size_t dim)
 creates a wavelet grid More...
 
static Gridunserialize (const std::string &istr)
 reads a grid out of a string More...
 
static Gridunserialize (std::istream &istr)
 reads a grid out of a stream More...
 

Protected Types

typedef Grid *(* Factory )(std::istream &)
 
typedef std::map< std::string,
Grid::Factory
factoryMap
 
typedef std::map
< sgpp::base::GridType,
std::string > 
gridTypeVerboseMap
 

Protected Member Functions

 Grid (std::istream &istr)
 This constructor creates a new GridStorage out of the stream. More...
 
 Grid (size_t dim)
 Constructor initializing the grid storage with the given dimensionality. More...
 
 Grid (BoundingBox &boundingBox)
 Constructor initializing the grid storage with the given BoundingBox. More...
 
 Grid (Stretching &stretching)
 Constructor initializing the grid storage with the given Stretching. More...
 

Static Protected Member Functions

static GridnullFactory (std::istream &)
 Factory for everything we don't know. More...
 

Protected Attributes

GridStorage storage
 GridStorage object of the grid. More...
 

Detailed Description

abstract base class for all types grids used in sgpp the class gives pure virtual function definitions that have to be implemented by all types of grids

Member Typedef Documentation

typedef Grid*(* sgpp::base::Grid::Factory)(std::istream &)
protected
typedef std::map<std::string, Grid::Factory> sgpp::base::Grid::factoryMap
protected
typedef std::map<sgpp::base::GridType, std::string> sgpp::base::Grid::gridTypeVerboseMap
protected

Constructor & Destructor Documentation

sgpp::base::Grid::Grid ( std::istream &  istr)
explicitprotected

This constructor creates a new GridStorage out of the stream.

For derived classes create an own constructor wich takes a std::istream and calls this function. Add your own static unserialize function and add it in typeMap().

Parameters
istrinputstream that contains the grid information
sgpp::base::Grid::Grid ( size_t  dim)
explicitprotected

Constructor initializing the grid storage with the given dimensionality.

Parameters
dimdimensionality
sgpp::base::Grid::Grid ( BoundingBox boundingBox)
explicitprotected

Constructor initializing the grid storage with the given BoundingBox.

Parameters
boundingBoxBoundingBox of the grid
sgpp::base::Grid::Grid ( Stretching stretching)
explicitprotected

Constructor initializing the grid storage with the given Stretching.

Parameters
stretchingStretching of the grid
sgpp::base::Grid::~Grid ( )
virtual

Desctructor.

Member Function Documentation

Grid * sgpp::base::Grid::createBsplineBoundaryGrid ( size_t  dim,
size_t  degree 
)
static

creates a Bspline trapezoid boundary grid

Parameters
dimthe grid's dimension
degreethe B-spline degree
Returns
grid
Grid * sgpp::base::Grid::createBsplineClenshawCurtisGrid ( size_t  dim,
size_t  degree 
)
static

creates a Bspline Clenshaw-Curtis grid

Parameters
dimthe grid's dimension
degreethe B-spline degree
Returns
grid
Grid * sgpp::base::Grid::createBsplineGrid ( size_t  dim,
size_t  degree 
)
static

creates a Bspline grid

Parameters
dimthe grid's dimension
degreethe B-spline degree
Returns
grid
Grid * sgpp::base::Grid::createFundamentalSplineGrid ( size_t  dim,
size_t  degree 
)
static

creates a fundamental spline grid

Parameters
dimthe grid's dimension
degreethe B-spline degree
Returns
grid
Grid * sgpp::base::Grid::createLinearBoundaryGrid ( size_t  dim,
level_t  boundaryLevel = 1 
)
static

creates a linear boundary grid

Parameters
dimthe grid's dimension
boundaryLevelon which level the boundary grid points and basis functions should be added; the default is 1, which results in a grid with the same resolution on the boundary as on the main axis
Returns
grid

Referenced by sgpp::datadriven::LearnerSGDE::createRegularGrid(), sgpp::datadriven::AlgorithmAdaBoostBase::doAdaBoostR2(), sgpp::datadriven::AlgorithmAdaBoostBase::doAdaBoostRT(), sgpp::datadriven::AlgorithmAdaBoostBase::doDiscreteAdaBoost(), sgpp::datadriven::AlgorithmAdaBoostBase::doRealAdaBoost(), and sgpp::datadriven::ModelFittingBase::initializeGrid().

Grid * sgpp::base::Grid::createLinearClenshawCurtisGrid ( size_t  dim)
static

creates a linear Clenshaw-Curtis grid

Parameters
dimthe grid's dimension
Returns
grid
Grid * sgpp::base::Grid::createLinearGridStencil ( size_t  dim)
static

creates a stencil for a linear grid without boundaries

Parameters
dimthe grid's dimension
Returns
grid
Grid * sgpp::base::Grid::createLinearStretchedBoundaryGrid ( size_t  dim)
static

creates a linearstretched truncated boundary grid

Parameters
dimthe grid's dimension
Grid * sgpp::base::Grid::createLinearStretchedGrid ( size_t  dim)
static

creates a linear stretched grid without boundaries

Parameters
dimthe grid's dimension
Returns
grid
Grid * sgpp::base::Grid::createLinearTruncatedBoundaryGrid ( size_t  dim)
static

creates a truncated boundary grid=contains all the gridpoints of the fullgrids which have \(|l|<level and li>=l_user\)

Parameters
dimthe grid's dimension
Returns
grid
Grid * sgpp::base::Grid::createModBsplineClenshawCurtisGrid ( size_t  dim,
size_t  degree 
)
static

creates a mod-Bspline Clenshaw-Curtis grid

Parameters
dimthe grid's dimension
degreethe B-spline degree
Returns
grid
Grid * sgpp::base::Grid::createModBsplineGrid ( size_t  dim,
size_t  degree 
)
static

creates a mod-Bspline grid

Parameters
dimthe grid's dimension
degreethe B-spline degree
Returns
grid
Grid * sgpp::base::Grid::createModFundamentalSplineGrid ( size_t  dim,
size_t  degree 
)
static

creates a mod-fundamental spline grid

Parameters
dimthe grid's dimension
degreethe B-spline degree
Returns
grid
Grid * sgpp::base::Grid::createModLinearGridStencil ( size_t  dim)
static

creates a stencil for a modified linear grid (without boundaries)

Parameters
dimthe grid's dimension
Returns
grid
Grid * sgpp::base::Grid::createModPolyGrid ( size_t  dim,
size_t  degree 
)
static

creates a poly grid

Parameters
dimthe grid's dimension
degreethe polynom's max. degree
Returns
grid
Grid * sgpp::base::Grid::createModWaveletGrid ( size_t  dim)
static

creates a mod wavelet grid

Parameters
dimthe grid's dimension
Returns
grid
Grid * sgpp::base::Grid::createPeriodicGrid ( size_t  dim)
static

creates a periodic grid

Parameters
dimthe grid's dimension
Returns
grid
Grid * sgpp::base::Grid::createPolyBoundaryGrid ( size_t  dim,
size_t  degree 
)
static

creates a polynomial grid with truncated boundary

Parameters
dimthe grid's dimension
degreethe polynom's max. degree
Returns
grid
Grid * sgpp::base::Grid::createPolyGrid ( size_t  dim,
size_t  degree 
)
static

creates a polynomial grid

Parameters
dimthe grid's dimension
degreethe polynom's max. degree
Returns
grid
Grid * sgpp::base::Grid::createPrewaveletGrid ( size_t  dim)
static

creates a prewavelet grid

Parameters
dimthe grid's dimension
Returns
grid
Grid * sgpp::base::Grid::createSquareRootGrid ( size_t  dim)
static

creates a square root grid(h-grid)

Parameters
dimthe grid's dimension
Returns
grid
Grid * sgpp::base::Grid::createWaveletBoundaryGrid ( size_t  dim)
static

creates a wavelet trapezoid boundary grid

Parameters
dimthe grid's dimension
Grid * sgpp::base::Grid::createWaveletGrid ( size_t  dim)
static

creates a wavelet grid

Parameters
dimthe grid's dimension
Returns
grid
std::vector< size_t > sgpp::base::Grid::getAlgorithmicDimensions ( )

returns the algorithmic dimensions (the dimensions in which the Up Down operations should be applied)

Returns
the algorithmic dimensions

References sgpp::base::HashGridStorage::getAlgorithmicDimensions(), and storage.

Referenced by sgpp::base::DirichletGridConverter::buildInnerGridWithCoefs(), and sgpp::base::DirichletGridConverter::rebuildInnerGridWithCoefs().

size_t sgpp::base::Grid::getDimension ( )

Returns the number of dimensions.

Returns
the number of dimensions

References sgpp::base::HashGridStorage::getDimension(), and storage.

Referenced by sgpp::base::OperationQuadratureMC::doQuadrature(), sgpp::base::OperationQuadratureMC::doQuadratureFunc(), sgpp::base::OperationQuadratureMC::doQuadratureL2Error(), sgpp::datadriven::OperationDensitySamplingLinear::doSampling(), sgpp::datadriven::OperationDensityRejectionSamplingLinear::doSampling(), sgpp::datadriven::OperationDensitySamplingLinear::doSampling_in_next_dim(), sgpp::datadriven::OperationInverseRosenblattTransformationLinear::doTransformation(), sgpp::datadriven::OperationRosenblattTransformationLinear::doTransformation(), sgpp::datadriven::OperationInverseRosenblattTransformationLinear::doTransformation_in_next_dim(), sgpp::datadriven::OperationRosenblattTransformationLinear::doTransformation_in_next_dim(), sgpp::datadriven::LearnerBaseSP::dumpFunction(), sgpp::datadriven::LearnerVectorizedPerformanceCalculator::getGFlopAndGByte(), sgpp::datadriven::OperationDensityMargTo1DLinear::marg_next_dim(), sgpp::datadriven::OperationDensityMargTo1DLinear::margToDimX(), sgpp::datadriven::OperationDensityMargTo1DLinear::margToDimXs(), sgpp::quadrature::OperationQuadratureMCAdvanced::OperationQuadratureMCAdvanced(), sgpp::base::GridPrinterForStretching::printGrid(), sgpp::base::GridPrinter::printGrid(), sgpp::base::GridPrinter::printGridDomain(), sgpp::base::GridPrinterForStretching::printGridDomainStretching(), sgpp::base::GridPrinterForStretching::printSparseGrid(), sgpp::base::GridPrinter::printSparseGrid(), sgpp::base::GridPrinterForStretching::printSparseGridExpTransform(), sgpp::base::GridPrinter::printSparseGridExpTransform(), and sgpp::pde::PDESolver::setGrid().

virtual GridGenerator& sgpp::base::Grid::getGenerator ( )
pure virtual
Returns
reference to a GridGenerator object

Implemented in sgpp::base::BsplineBoundaryGrid, sgpp::base::BsplineClenshawCurtisGrid, sgpp::base::BsplineGrid, sgpp::base::FundamentalSplineGrid, sgpp::base::ModBsplineClenshawCurtisGrid, sgpp::base::ModBsplineGrid, sgpp::base::ModFundamentalSplineGrid, sgpp::base::LinearBoundaryGrid, sgpp::base::LinearTruncatedBoundaryGrid, sgpp::base::LinearGrid, sgpp::base::LinearGridStencil, sgpp::base::LinearStretchedGrid, sgpp::base::ModLinearGridStencil, sgpp::base::LinearStretchedBoundaryGrid, sgpp::base::SquareRootGrid, sgpp::base::PolyBoundaryGrid, sgpp::base::WaveletBoundaryGrid, sgpp::base::LinearClenshawCurtisGrid, sgpp::base::LinearL0BoundaryGrid, sgpp::base::ModLinearGrid, sgpp::base::ModPolyGrid, sgpp::base::ModWaveletGrid, sgpp::base::WaveletGrid, sgpp::base::PeriodicGrid, sgpp::base::PolyGrid, and sgpp::base::PrewaveletGrid.

Referenced by sgpp::pde::PDESolver::coarsenInitialGridSurplus(), sgpp::pde::PoissonEquationSolver::constructGrid(), sgpp::pde::HeatEquationSolver::constructGrid(), sgpp::pde::HeatEquationSolverWithStretching::constructGrid(), sgpp::datadriven::AlgorithmAdaBoostBase::doAdaBoostR2(), sgpp::datadriven::AlgorithmAdaBoostBase::doAdaBoostRT(), sgpp::datadriven::AlgorithmAdaBoostBase::doDiscreteAdaBoost(), sgpp::datadriven::AlgorithmAdaBoostBase::doRealAdaBoost(), sgpp::datadriven::AlgorithmAdaBoostBase::doRefinement(), sgpp::optimization::IterativeGridGeneratorLinearSurplus::generate(), sgpp::optimization::IterativeGridGeneratorRitterNovak::generate(), sgpp::datadriven::LearnerBaseSP::InitializeGrid(), main(), refine(), sgpp::pde::PDESolver::refineInitialGridSurplus(), sgpp::pde::PDESolver::refineInitialGridSurplusSubDomain(), sgpp::pde::PDESolver::refineInitialGridSurplusToMaxLevel(), sgpp::pde::PDESolver::refineInitialGridSurplusToMaxLevelSubDomain(), sgpp::datadriven::LearnerBaseSP::train(), and sgpp::datadriven::LearnerSGDE::train().

size_t sgpp::base::Grid::getSize ( )

Returns the number of points on the grid.

Returns
the number of points on the grid

References sgpp::base::HashGridStorage::getSize(), and storage.

Referenced by sgpp::pde::PDESolver::coarsenInitialGridSurplus(), sgpp::datadriven::LearnerSGDE::computeResidual(), python.uq.uq_setting.UQSetting.UQSetting::convert(), doAllRefinements(), doDirectedRefinements(), doRandomRefinements(), sgpp::datadriven::AlgorithmAdaBoostBase::doRefinement(), sgpp::datadriven::LearnerVectorizedPerformanceCalculator::getGFlopAndGByte(), sgpp::pde::OperationEllipticPDESolverSystemDirichlet::getGridCoefficientsForCG(), sgpp::pde::PDESolver::getGridNormalDistribution(), python.uq.learner.Interpolant.Interpolant::getMSE(), 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::datadriven::LearnerBaseSP::InitializeGrid(), sgpp::pde::OperationEllipticPDESolverSystemDirichlet::OperationEllipticPDESolverSystemDirichlet(), sgpp::pde::OperationMatrixLTwoDotExplicitLinear::OperationMatrixLTwoDotExplicitLinear(), sgpp::pde::OperationMatrixLTwoDotExplicitLinearBoundary::OperationMatrixLTwoDotExplicitLinearBoundary(), sgpp::pde::OperationMatrixLTwoDotExplicitPeriodic::OperationMatrixLTwoDotExplicitPeriodic(), sgpp::datadriven::LearnerBaseSP::predict(), sgpp::base::GridPrinterForStretching::printGrid(), sgpp::base::GridPrinter::printGrid(), sgpp::base::GridPrinter::printGridDomain(), sgpp::base::GridPrinterForStretching::printGridDomainStretching(), sgpp::base::GridPrinter::printLevelIndexGrid(), sgpp::base::GridPrinterForStretching::printSparseGrid(), sgpp::base::GridPrinter::printSparseGrid(), sgpp::base::GridPrinterForStretching::printSparseGridExpTransform(), sgpp::base::GridPrinter::printSparseGridExpTransform(), python.uq.uq_setting.UQSetting.UQSetting::runSamples(), python.uq.uq_setting.UQSetting.UQSetting::runSamples_withoutDistribution(), sgpp::datadriven::LearnerBaseSP::train(), and sgpp::datadriven::LearnerSGDE::train().

GridStorage & sgpp::base::Grid::getStorage ( )
virtual

gets a reference to the GridStorage object

Returns
reference to the GridStorage obeject

References storage.

Referenced by sgpp::solver::OperationParabolicPDESolverSystem::abortTimestep(), sgpp::datadriven::AlgorithmAdaBoostBase::AlgorithmAdaBoostBase(), sgpp::pde::HeatEquationParabolicPDESolverSystemParallelOMP::applyLOperatorComplete(), sgpp::pde::HeatEquationParabolicPDESolverSystemParallelOMP::applyLOperatorInner(), sgpp::base::DirichletGridConverter::buildInnerGridWithCoefs(), sgpp::pde::PoissonEquationSolver::constructGrid(), sgpp::pde::HeatEquationSolver::constructGrid(), sgpp::pde::HeatEquationSolverWithStretching::constructGrid(), sgpp::op_factory::createOperationConvert(), sgpp::op_factory::createOperationEval(), sgpp::op_factory::createOperationEvalGradientNaive(), sgpp::op_factory::createOperationEvalHessianNaive(), sgpp::op_factory::createOperationEvalNaive(), sgpp::op_factory::createOperationEvalPartialDerivativeNaive(), sgpp::op_factory::createOperationFirstMoment(), sgpp::op_factory::createOperationHierarchisation(), sgpp::op_factory::createOperationLaplace(), sgpp::op_factory::createOperationLaplaceEnhanced(), sgpp::op_factory::createOperationLTwoDotProduct(), sgpp::op_factory::createOperationQuadrature(), sgpp::op_factory::createOperationRegularizationDiagonal(), sgpp::op_factory::createOperationSecondMoment(), sgpp::op_factory::createOperationTest(), sgpp::datadriven::OperationDensityConditionalLinear::doConditional(), sgpp::base::OperationHierarchisationFundamentalSpline::doDehierarchisation(), sgpp::base::OperationHierarchisationModFundamentalSpline::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationBspline::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationBsplineBoundary::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationLinear::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationLinearBoundary::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationModBspline::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationModLinear::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationModWavelet::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationWaveletBoundary::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationWavelet::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationBsplineClenshawCurtis::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationLinearClenshawCurtis::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationModBsplineClenshawCurtis::doDehierarchisation(), sgpp::base::OperationHierarchisationModFundamentalSpline::doHierarchisation(), sgpp::base::OperationHierarchisationFundamentalSpline::doHierarchisation(), sgpp::datadriven::OperationDensityMarginalizeLinear::doMarginalize(), sgpp::datadriven::AlgorithmAdaBoostBase::doRefinement(), sgpp::datadriven::OperationDensitySampling1DLinear::doSampling1D(), sgpp::datadriven::OperationRosenblattTransformation1DLinear::doTransformation1D(), sgpp::datadriven::OperationInverseRosenblattTransformation1DLinear::doTransformation1D(), sgpp::datadriven::OperationRosenblattTransformationLinear::doTransformation1D(), sgpp::datadriven::OperationInverseRosenblattTransformationLinear::doTransformation1D(), sgpp::optimization::IterativeGridGenerator::evalFunction(), sgpp::optimization::IterativeGridGeneratorSOO::generate(), sgpp::optimization::IterativeGridGeneratorLinearSurplus::generate(), sgpp::optimization::IterativeGridGeneratorRitterNovak::generate(), sgpp::datadriven::PiecewiseConstantSmoothedRegressionSystemMatrix::generateb(), sgpp::datadriven::LearnerVectorizedPerformanceCalculator::getGFlopAndGByte(), sgpp::solver::OperationParabolicPDESolverSystem::getGridStorage(), sgpp::base::GridDataBase::GridDataBase(), sgpp::pde::HeatEquationParabolicPDESolverSystem::HeatEquationParabolicPDESolverSystem(), sgpp::pde::HeatEquationParabolicPDESolverSystemParallelOMP::HeatEquationParabolicPDESolverSystemParallelOMP(), main(), sgpp::pde::OperationEllipticPDESolverSystemDirichlet::OperationEllipticPDESolverSystemDirichlet(), sgpp::datadriven::OperationMultiEvalModMaskStreaming::OperationMultiEvalModMaskStreaming(), sgpp::datadriven::OperationMultiEvalStreaming::OperationMultiEvalStreaming(), sgpp::datadriven::OperationMultiEvalStreamingBSplineOCL< T >::OperationMultiEvalStreamingBSplineOCL(), sgpp::optimization::Printer::printIterativeGridGenerator(), sgpp::base::GridPrinter::printLevelIndexGrid(), sgpp::base::GridPrinterForStretching::printSparseGrid(), sgpp::base::GridPrinter::printSparseGrid(), sgpp::base::GridPrinterForStretching::printSparseGridExpTransform(), sgpp::base::GridPrinter::printSparseGridExpTransform(), sgpp::base::DirichletGridConverter::rebuildInnerGridWithCoefs(), sgpp::solver::OperationParabolicPDESolverSystem::saveAlpha(), sgpp::pde::PDESolver::setGrid(), sgpp::base::GridDataBase::setValuesFor(), sgpp::datadriven::LearnerSGDE::train(), and sgpp::optimization::IterativeGridGenerator::undoRefinement().

Stretching & sgpp::base::Grid::getStretching ( )
virtual
virtual sgpp::base::GridType sgpp::base::Grid::getType ( )
pure virtual

Returns a string that identifies the grid type uniquely.

Returns
string that identifies the grid type uniquely

Implemented in sgpp::base::LinearBoundaryGrid, sgpp::base::BsplineBoundaryGrid, sgpp::base::BsplineClenshawCurtisGrid, sgpp::base::LinearTruncatedBoundaryGrid, sgpp::base::LinearGrid, sgpp::base::LinearGridStencil, sgpp::base::LinearStretchedGrid, sgpp::base::ModLinearGridStencil, sgpp::base::BsplineGrid, sgpp::base::FundamentalSplineGrid, sgpp::base::LinearStretchedBoundaryGrid, sgpp::base::ModBsplineClenshawCurtisGrid, sgpp::base::ModBsplineGrid, sgpp::base::ModFundamentalSplineGrid, sgpp::base::SquareRootGrid, sgpp::base::PolyBoundaryGrid, sgpp::base::WaveletBoundaryGrid, sgpp::base::LinearClenshawCurtisGrid, sgpp::base::LinearL0BoundaryGrid, sgpp::base::ModLinearGrid, sgpp::base::ModWaveletGrid, sgpp::base::PeriodicGrid, sgpp::base::WaveletGrid, sgpp::base::ModPolyGrid, sgpp::base::PolyGrid, and sgpp::base::PrewaveletGrid.

Referenced by sgpp::base::DirichletGridConverter::buildInnerGridWithCoefs(), sgpp::op_factory::createOperationConvert(), sgpp::op_factory::createOperationDensityConditional(), sgpp::op_factory::createOperationDensityMarginalize(), sgpp::op_factory::createOperationDensityMargTo1D(), sgpp::op_factory::createOperationDensityRejectionSampling(), sgpp::op_factory::createOperationDensitySampling(), sgpp::op_factory::createOperationDensitySampling1D(), sgpp::op_factory::createOperationEval(), sgpp::op_factory::createOperationEvalGradientNaive(), sgpp::op_factory::createOperationEvalHessianNaive(), sgpp::op_factory::createOperationEvalNaive(), sgpp::op_factory::createOperationEvalPartialDerivativeNaive(), sgpp::op_factory::createOperationFirstMoment(), sgpp::op_factory::createOperationHierarchisation(), sgpp::op_factory::createOperationInverseRosenblattTransformation(), sgpp::op_factory::createOperationInverseRosenblattTransformation1D(), sgpp::op_factory::createOperationLaplace(), sgpp::op_factory::createOperationLaplaceEnhanced(), sgpp::op_factory::createOperationLTwoDotExplicit(), sgpp::op_factory::createOperationLTwoDotProduct(), sgpp::op_factory::createOperationMultipleEval(), sgpp::op_factory::createOperationMultipleHierarchisation(), sgpp::op_factory::createOperationQuadrature(), sgpp::op_factory::createOperationRegularizationDiagonal(), sgpp::op_factory::createOperationRosenblattTransformation(), sgpp::op_factory::createOperationRosenblattTransformation1D(), sgpp::op_factory::createOperationSecondMoment(), sgpp::op_factory::createOperationTest(), sgpp::optimization::IterativeGridGeneratorLinearSurplus::generate(), sgpp::datadriven::LearnerVectorizedPerformanceCalculator::getGFlopAndGByte(), sgpp::optimization::HierarchisationSLE::HierarchisationSLE(), sgpp::optimization::IterativeGridGeneratorLinearSurplus::IterativeGridGeneratorLinearSurplus(), sgpp::base::PredictiveRefinementIndicator::PredictiveRefinementIndicator(), sgpp::base::DirichletGridConverter::rebuildInnerGridWithCoefs(), and serialize().

void sgpp::base::Grid::insertPoint ( size_t  dim,
unsigned int  levels[],
unsigned int  indices[],
bool  isLeaf 
)

Insert one point to the grid.

Parameters
dimdimension of the grid
levelsarray with levels of the point
indicesarray with indices of the point
isLeafindicator whether the point is a leaf

References sgpp::base::HashGridStorage::insert(), sgpp::base::HashGridPoint::push(), sgpp::base::HashGridPoint::set(), and storage.

Referenced by python.uq.refinement.AdmissibleSet.AdmissibleSparseGridNodeSet::addCollocationNode(), python.uq.refinement.AdmissibleSet.RefinableNodesSet::create(), and python.uq.refinement.AdmissibleSet.RefinableNodesSet::update().

Grid * sgpp::base::Grid::nullFactory ( std::istream &  )
staticprotected

Factory for everything we don't know.

void sgpp::base::Grid::refine ( DataVector vector,
int  numOfPoints 
)

Refine grid Refine the given number of points on the grid according to the vector.

Parameters
vectorDataVector vector with errors for each basis function or alpha-vector
numOfPointsinteger number of points to refine

References getGenerator(), and sgpp::base::GridGenerator::refine().

void sgpp::base::Grid::serialize ( std::string &  ostr,
int  version = SERIALIZATION_VERSION 
)
void sgpp::base::Grid::setAlgorithmicDimensions ( std::vector< size_t >  newAlgoDims)

sets the algorithmic dimensions (the dimensions in which the Up Down operations should be applied)

Parameters
newAlgoDimsstd::vector containing the algorithmic dimensions

References sgpp::base::HashGridStorage::setAlgorithmicDimensions(), and storage.

Referenced by sgpp::base::DirichletGridConverter::buildInnerGridWithCoefs().

void sgpp::base::Grid::setBoundingBox ( BoundingBox boundingBox)
virtual

sets the GridStorage's BoundingsBox pointer to a BoundingBox object

Returns
pointer to the GridStorage's BoundingsBox object

References sgpp::base::HashGridStorage::setBoundingBox(), and storage.

void sgpp::base::Grid::setStretching ( Stretching stretching)
virtual

sets the GridStorage's Stretching pointer to a Stretching object

Returns
pointer to the GridStorage's Stretching object

References sgpp::base::HashGridStorage::setStretching(), and storage.

Grid * sgpp::base::Grid::unserialize ( const std::string &  istr)
static

reads a grid out of a string

Parameters
istrstring that contains the grid information
Returns
grid

Referenced by sgpp::datadriven::LearnerSGDE::createRegularGrid(), sgpp::datadriven::LearnerBase::LearnerBase(), sgpp::datadriven::LearnerBaseSP::LearnerBaseSP(), and sgpp::pde::PDESolver::setGrid().

Grid * sgpp::base::Grid::unserialize ( std::istream &  istr)
static

reads a grid out of a stream

Parameters
istrinputstream that contains the grid information
Returns
grid

Member Data Documentation


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