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

Generic hash table based storage of grid points. More...

#include <HashGridStorage.hpp>

Public Types

typedef HashGridIterator grid_iterator
 iterator for grid points More...
 
typedef std::vector
< point_pointer
grid_list
 vector of index_pointers More...
 
typedef grid_list::const_iterator grid_list_const_iterator
 const iterator of grid_list More...
 
typedef grid_list::iterator grid_list_iterator
 iterator of grid_list More...
 
typedef std::unordered_map
< point_pointer, size_t,
HashGridPointPointerHashFunctor,
HashGridPointPointerEqualityFunctor
grid_map
 unordered_map of index_pointers More...
 
typedef grid_map::const_iterator grid_map_const_iterator
 const_iterator of grid_map More...
 
typedef grid_map::iterator grid_map_iterator
 iterator of grid_map More...
 
typedef const HashGridPointindex_const_pointer
 pointer to constant index_type More...
 
typedef HashGridPointpoint_pointer
 pointer to index_type More...
 
typedef HashGridPoint point_type
 type of grid points More...
 

Public Member Functions

grid_map_iterator begin ()
 set iterator to the first position in the map More...
 
void clear ()
 deletes all grid points in the storage More...
 
point_pointer create (point_type &index)
 creates a pointer to index from a reference to index by creating a new instance of a index object More...
 
void deleteLast ()
 This methods removes the gridpoint added last. More...
 
std::vector< size_t > deletePoints (std::list< size_t > &removePoints)
 Remove several point from HashGridStorage. More...
 
void destroy (point_pointer index)
 removes an index from gridstorage More...
 
grid_map_iterator end ()
 sets the iterator to last position in the map More...
 
grid_map_iterator find (point_pointer index)
 sets the iterator to a given index More...
 
std::vector< size_t > getAlgorithmicDimensions ()
 returns the algorithmic dimensions (the dimensions in which the Up Down operations should be applied) More...
 
BoundingBoxgetBoundingBox ()
 get the bounding box of the current grid More...
 
double getCoordinate (HashGridPoint point, size_t d) const
 Calculates the coordinate of a given grid point in specific dimension. More...
 
void getCoordinates (HashGridPoint point, DataVector &coordinates) const
 Calculates the coordinates of a given grid point. More...
 
DataVector getCoordinates (HashGridPoint point) const
 Calculates the coordinates of a given grid point. More...
 
size_t getDimension () const
 gets the dimension of the grid More...
 
void getLevelForIntegral (DataMatrix &level)
 Converts this storage from AOS (array of structures) to SOA (structure of array) with modification to speed up iterative Laplace Calculations: the level won't contain the levels, it contains 2 to the neagative power of the level. More...
 
void getLevelIndexArraysForEval (DataMatrix &level, DataMatrix &index)
 Converts this storage from AOS (array of structures) to SOA (structure of array) with modification to speed up iterative function evaluation. More...
 
void getLevelIndexArraysForEval (DataMatrixSP &level, DataMatrixSP &index)
 Converts this storage from AOS (array of structures) to SOA (structure of array) with modification to speed up iterative function evaluation. More...
 
void getLevelIndexMaskArraysForModEval (DataMatrix &level, DataMatrix &index, DataMatrix &mask, DataMatrix &offset)
 Converts this storage from AOS (array of structures) to SOA (structure of array) with modification to speed up iterative function evaluation. More...
 
void getLevelIndexMaskArraysForModEval (DataMatrixSP &level, DataMatrixSP &index, DataMatrixSP &mask, DataMatrixSP &offset)
 Converts this storage from AOS (array of structures) to SOA (structure of array) with modification to speed up iterative function evaluation. More...
 
size_t getMaxLevel () const
 returns the max. More...
 
size_t getNumberOfInnerPoints () const
 gets the number of inner grid points More...
 
HashGridPointgetPoint (size_t seq) const
 gets the index number for given gridpoint by its sequence number More...
 
size_t getSequenceNumber (HashGridPoint &index) const
 Gets the seq number for index. More...
 
size_t getSize () const
 gets the size of the hashmap More...
 
StretchinggetStretching ()
 get the stretching bounding box of the current grid More...
 
 HashGridStorage (size_t dimension)
 Constructor. More...
 
 HashGridStorage (BoundingBox &creationBoundingBox)
 Constructor. More...
 
 HashGridStorage (Stretching &creationStretching)
 Constructor. More...
 
 HashGridStorage (std::string &istr)
 Constructor that reads the data from a string. More...
 
 HashGridStorage (std::istream &istream)
 Constructor that reads the data from an input stream. More...
 
 HashGridStorage (HashGridStorage &copyFrom)
 Copy Constructor. More...
 
size_t insert (point_type &index)
 insert a new index into map More...
 
bool isContaining (HashGridPoint &index) const
 Tests if index is in the storage. More...
 
bool isValidSequenceNumber (size_t s)
 Tests if seq number does not point to a valid grid point. More...
 
HashGridPointoperator[] (size_t seq)
 gets the index number for given gridpoint by its sequence number More...
 
const HashGridPointoperator[] (size_t seq) const
 gets the index number for given gridpoint by its sequence number More...
 
void recalcLeafProperty ()
 Recalculates the leaf-property of every grid point. More...
 
std::string serialize (int version=SERIALIZATION_VERSION) const
 serialize the gridstorage into a string More...
 
void serialize (std::ostream &ostream, int version=SERIALIZATION_VERSION) const
 serialize the gridstorage into a stream More...
 
void setAlgorithmicDimensions (std::vector< size_t > newAlgoDims)
 sets the algorithmic dimensions (the dimensions in which the Up Down operations should be applied) More...
 
void setBoundingBox (BoundingBox &boundingBox)
 sets the bounding box of the current grid More...
 
void setStretching (Stretching &stretching)
 sets the stretching bounding box of the current grid More...
 
unsigned int store (point_pointer index)
 stores a given index in the hashmap More...
 
std::string toString () const
 serialize the gridstorage's gridpoints into a stream More...
 
void toString (std::ostream &stream) const
 serialize the gridstorage's gridpoints into a stream More...
 
void unserializeNoAlgoDims (std::string &istr)
 unserializes the grid from a string, algorithmic dimensions are not reseted More...
 
void update (point_type &index, size_t pos)
 updates an already stored index More...
 
 ~HashGridStorage ()
 Destructor. More...
 

Detailed Description

Generic hash table based storage of grid points.

Member Typedef Documentation

vector of index_pointers

typedef grid_list::const_iterator sgpp::base::HashGridStorage::grid_list_const_iterator

const iterator of grid_list

iterator of grid_list

typedef grid_map::const_iterator sgpp::base::HashGridStorage::grid_map_const_iterator

const_iterator of grid_map

iterator of grid_map

pointer to constant index_type

Constructor & Destructor Documentation

sgpp::base::HashGridStorage::HashGridStorage ( size_t  dimension)
explicit

Constructor.

initializes the boundingBox with a trivial cube

Parameters
dimensionthe dimension of the sparse grid
sgpp::base::HashGridStorage::HashGridStorage ( BoundingBox creationBoundingBox)
explicit

Constructor.

initializes the boundingBox with a reference to another boundingbox

Parameters
creationBoundingBoxreference to bounding box object that describes the grid boundaries
sgpp::base::HashGridStorage::HashGridStorage ( Stretching creationStretching)
explicit

Constructor.

initializes the stretching with a reference to another stretching

Parameters
creationStretchingreference to stretching object that describes the grid boundaries and the stretching
sgpp::base::HashGridStorage::HashGridStorage ( std::string &  istr)
explicit

Constructor that reads the data from a string.

Parameters
istrthe string that contains the data
sgpp::base::HashGridStorage::HashGridStorage ( std::istream &  istream)
explicit

Constructor that reads the data from an input stream.

Parameters
istreamthe inputstream that contains the data
sgpp::base::HashGridStorage::HashGridStorage ( HashGridStorage copyFrom)
explicit

Copy Constructor.

References getSize(), and insert().

sgpp::base::HashGridStorage::~HashGridStorage ( )

Destructor.

Member Function Documentation

void sgpp::base::HashGridStorage::clear ( )

deletes all grid points in the storage

Referenced by sgpp::optimization::file_io::readGrid().

HashGridStorage::point_pointer sgpp::base::HashGridStorage::create ( point_type index)
inline

creates a pointer to index from a reference to index by creating a new instance of a index object

Parameters
indexaddress of index object
Returns
pointer to new index object

References insert().

void sgpp::base::HashGridStorage::deleteLast ( )

This methods removes the gridpoint added last.

Use with coution, only needed for expanding the grid because of the shadow-storage of prewavelets. Please refer to the Prewavelet grid for further description of the shadow storage.

Referenced by sgpp::base::OperationHierarchisationPrewavelet::shrinkGrid(), and sgpp::pde::UpDownOneOpDimWithShadow::shrinkGrid().

std::vector< size_t > sgpp::base::HashGridStorage::deletePoints ( std::list< size_t > &  removePoints)

Remove several point from HashGridStorage.

The points to removed are stored in a list. This function returns a vector of remaining points given by their

Parameters
removePointsvector containing the indices of the points that should be removed
Returns
a vector containing the indices of remaining points given by their "old" index

References recalcLeafProperty().

Referenced by sgpp::base::HashCoarsening::free_coarsen_NFirstOnly(), and sgpp::optimization::IterativeGridGenerator::undoRefinement().

void sgpp::base::HashGridStorage::destroy ( point_pointer  index)
inline

removes an index from gridstorage

Parameters
indexpointer to index that should be removed
std::vector< size_t > sgpp::base::HashGridStorage::getAlgorithmicDimensions ( )
inline

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

Returns
the algorithmic dimensions

Referenced by sgpp::pde::HeatEquationParabolicPDESolverSystemParallelOMP::applyLOperatorComplete(), sgpp::pde::HeatEquationParabolicPDESolverSystemParallelOMP::applyLOperatorInner(), and sgpp::base::Grid::getAlgorithmicDimensions().

BoundingBox * sgpp::base::HashGridStorage::getBoundingBox ( )

get the bounding box of the current grid

Returns
returns a pointer to HashGridStorage's bounding box

Referenced by sgpp::base::OperationQuadratureLinear::doQuadrature(), sgpp::base::OperationQuadratureLinearBoundary::doQuadrature(), sgpp::base::OperationQuadraturePolyBoundary::doQuadrature(), sgpp::base::OperationQuadraturePoly::doQuadrature(), sgpp::base::OperationEvalModLinear::eval(), sgpp::base::OperationEvalModPolyNaive::eval(), sgpp::base::OperationEvalPolyNaive::eval(), sgpp::base::OperationEvalPolyBoundaryNaive::eval(), sgpp::base::OperationEvalLinearBoundaryNaive::eval(), sgpp::base::OperationEvalModLinearNaive::eval(), sgpp::base::OperationEvalLinearClenshawCurtisNaive::eval(), sgpp::base::OperationEvalLinearNaive::eval(), sgpp::base::OperationEvalModWaveletNaive::eval(), sgpp::base::OperationEvalWaveletBoundaryNaive::eval(), sgpp::base::OperationEvalWaveletNaive::eval(), sgpp::base::OperationEvalBsplineClenshawCurtisNaive::eval(), sgpp::base::OperationEvalModBsplineNaive::eval(), sgpp::base::OperationEvalModFundamentalSplineNaive::eval(), sgpp::base::OperationEvalFundamentalSplineNaive::eval(), sgpp::base::OperationEvalBsplineBoundaryNaive::eval(), sgpp::base::OperationEvalBsplineNaive::eval(), sgpp::base::OperationEvalModBsplineClenshawCurtisNaive::eval(), sgpp::base::OperationEvalGradientWaveletNaive::evalGradient(), sgpp::base::OperationEvalGradientWaveletBoundaryNaive::evalGradient(), sgpp::base::OperationEvalGradientModWaveletNaive::evalGradient(), sgpp::base::OperationEvalGradientBsplineNaive::evalGradient(), sgpp::base::OperationEvalGradientBsplineBoundaryNaive::evalGradient(), sgpp::base::OperationEvalGradientFundamentalSplineNaive::evalGradient(), sgpp::base::OperationEvalGradientModBsplineNaive::evalGradient(), sgpp::base::OperationEvalGradientBsplineClenshawCurtisNaive::evalGradient(), sgpp::base::OperationEvalGradientModBsplineClenshawCurtisNaive::evalGradient(), sgpp::base::OperationEvalGradientModFundamentalSplineNaive::evalGradient(), sgpp::base::OperationEvalHessianWaveletNaive::evalHessian(), sgpp::base::OperationEvalHessianModWaveletNaive::evalHessian(), sgpp::base::OperationEvalHessianWaveletBoundaryNaive::evalHessian(), sgpp::base::OperationEvalHessianBsplineNaive::evalHessian(), sgpp::base::OperationEvalHessianModBsplineNaive::evalHessian(), sgpp::base::OperationEvalHessianBsplineBoundaryNaive::evalHessian(), sgpp::base::OperationEvalHessianBsplineClenshawCurtisNaive::evalHessian(), sgpp::base::OperationEvalHessianFundamentalSplineNaive::evalHessian(), sgpp::base::OperationEvalHessianModFundamentalSplineNaive::evalHessian(), sgpp::base::OperationEvalHessianModBsplineClenshawCurtisNaive::evalHessian(), sgpp::base::OperationEvalPartialDerivativeWaveletNaive::evalPartialDerivative(), sgpp::base::OperationEvalPartialDerivativeWaveletBoundaryNaive::evalPartialDerivative(), sgpp::base::OperationEvalPartialDerivativeModWaveletNaive::evalPartialDerivative(), sgpp::base::OperationEvalPartialDerivativeModBsplineNaive::evalPartialDerivative(), sgpp::base::OperationEvalPartialDerivativeBsplineNaive::evalPartialDerivative(), sgpp::base::OperationEvalPartialDerivativeModFundamentalSplineNaive::evalPartialDerivative(), sgpp::base::OperationEvalPartialDerivativeBsplineClenshawCurtisNaive::evalPartialDerivative(), sgpp::base::OperationEvalPartialDerivativeFundamentalSplineNaive::evalPartialDerivative(), sgpp::base::OperationEvalPartialDerivativeBsplineBoundaryNaive::evalPartialDerivative(), sgpp::base::OperationEvalPartialDerivativeModBsplineClenshawCurtisNaive::evalPartialDerivative(), sgpp::base::Grid::getBoundingBox(), sgpp::base::AlgorithmEvaluationTransposed< BASIS >::operator()(), sgpp::pde::UpdPhidPhiBBIterativeLinearBoundary::operator()(), sgpp::pde::DowndPhidPhiBBIterativeLinear::operator()(), sgpp::pde::DowndPhidPhiBBIterativeLinearBoundary::operator()(), and sgpp::base::AlgorithmEvaluation< BASIS >::operator()().

double sgpp::base::HashGridStorage::getCoordinate ( HashGridPoint  point,
size_t  d 
) const
inline

Calculates the coordinate of a given grid point in specific dimension.

In contrast to HashGridPoint::getStandardCoordinate, this takes the BoundingBox and Stretching into account.

Parameters
pointgrid point
ddimension
Returns
coordinate of the point in dimension d

References sgpp::base::HashGridPoint::get(), sgpp::base::Stretching::getCoordinate(), sgpp::base::BoundingBox::getIntervalOffset(), sgpp::base::BoundingBox::getIntervalWidth(), and sgpp::base::HashGridPoint::getStandardCoordinate().

Referenced by sgpp::optimization::HierarchisationSLE::evalBsplineBoundaryFunctionAtGridPoint(), sgpp::optimization::HierarchisationSLE::evalBsplineClenshawCurtisFunctionAtGridPoint(), sgpp::optimization::HierarchisationSLE::evalBsplineFunctionAtGridPoint(), sgpp::optimization::HierarchisationSLE::evalBsplineModifiedClenshawCurtisFunctionAtGridPoint(), sgpp::optimization::HierarchisationSLE::evalBsplineModifiedFunctionAtGridPoint(), sgpp::optimization::IterativeGridGenerator::evalFunction(), sgpp::optimization::HierarchisationSLE::evalFundamentalSplineFunctionAtGridPoint(), sgpp::optimization::HierarchisationSLE::evalFundamentalSplineModifiedFunctionAtGridPoint(), sgpp::optimization::HierarchisationSLE::evalLinearBoundaryFunctionAtGridPoint(), sgpp::optimization::HierarchisationSLE::evalLinearClenshawCurtisFunctionAtGridPoint(), sgpp::optimization::HierarchisationSLE::evalLinearFunctionAtGridPoint(), sgpp::optimization::HierarchisationSLE::evalLinearModifiedFunctionAtGridPoint(), sgpp::optimization::HierarchisationSLE::evalWaveletBoundaryFunctionAtGridPoint(), sgpp::optimization::HierarchisationSLE::evalWaveletFunctionAtGridPoint(), sgpp::optimization::HierarchisationSLE::evalWaveletModifiedFunctionAtGridPoint(), getCoordinates(), and sgpp::optimization::file_io::writeGrid().

void sgpp::base::HashGridStorage::getCoordinates ( HashGridPoint  point,
DataVector coordinates 
) const

Calculates the coordinates of a given grid point.

In contrast to HashGridPoint::getStandardCoordinates, this takes the BoundingBox and Stretching into account.

Parameters
pointgrid point
[out]coordinatesvector of coordinates

References getCoordinate(), and sgpp::base::DataVector::resize().

Referenced by sgpp::optimization::OperationMultipleHierarchisationBspline::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationLinear::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationWavelet::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationWaveletBoundary::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationLinearBoundary::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationBsplineBoundary::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationModBspline::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationModLinear::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationModWavelet::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationBsplineClenshawCurtis::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationLinearClenshawCurtis::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationModBsplineClenshawCurtis::doDehierarchisation(), sgpp::optimization::IterativeGridGeneratorSOO::generate(), sgpp::pde::PDESolver::getGridNormalDistribution(), 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(), and sgpp::base::GridPrinter::printSparseGridExpTransform().

DataVector sgpp::base::HashGridStorage::getCoordinates ( HashGridPoint  point) const

Calculates the coordinates of a given grid point.

In contrast to HashGridPoint::getStandardCoordinates, this takes the BoundingBox and Stretching into account.

Parameters
pointgrid point
Returns
vector of coordinates

References getCoordinate().

size_t sgpp::base::HashGridStorage::getDimension ( ) const

gets the dimension of the grid

Returns
the dimension of the grid stored in this HashGridStorage object

Referenced by sgpp::datadriven::AlgorithmAdaBoostBase::AlgorithmAdaBoostBase(), sgpp::base::HashGenerator::cliques(), sgpp::base::HashGenerator::cliques_iter(), sgpp::base::SubspaceRefinement::collectRefinablePoints(), sgpp::base::HashRefinement::collectRefinablePoints(), sgpp::base::HashRefinementBoundaries::collectRefinablePoints(), sgpp::base::HashGenerator::createFullGridIterative(), sgpp::base::HashGenerator::createFullGridTruncatedIterative(), sgpp::base::HashRefinement::createGridpoint(), sgpp::base::HashRefinementBoundaries::createGridpoint1D(), sgpp::base::HashRefinementBoundaries::createGridpointGeneral(), sgpp::base::HashRefinementBoundaries::createGridpointLevelZeroConsistency(), sgpp::datadriven::OperationDensityConditionalLinear::doConditional(), sgpp::base::OperationConvertPrewavelet::doConvertFromLinear(), sgpp::base::OperationConvertPrewavelet::doConvertToLinear(), sgpp::base::OperationHierarchisationLinear::doDehierarchisation(), sgpp::base::OperationHierarchisationLinearBoundary::doDehierarchisation(), sgpp::base::OperationHierarchisationLinearStretched::doDehierarchisation(), sgpp::base::OperationHierarchisationModLinear::doDehierarchisation(), sgpp::base::OperationHierarchisationLinearStretchedBoundary::doDehierarchisation(), sgpp::base::OperationStencilHierarchisationLinear::doDehierarchisation(), sgpp::base::OperationStencilHierarchisationModLinear::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::OperationMultipleHierarchisationWavelet::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationWaveletBoundary::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationBsplineClenshawCurtis::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationLinearClenshawCurtis::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationModBsplineClenshawCurtis::doDehierarchisation(), sgpp::base::OperationHierarchisationPrewavelet::doDehierarchisation(), sgpp::base::OperationHierarchisationPoly::doDehierarchisation(), sgpp::base::OperationHierarchisationPolyBoundary::doDehierarchisation(), sgpp::base::OperationHierarchisationModPoly::doDehierarchisation(), sgpp::base::OperationHierarchisationLinear::doHierarchisation(), sgpp::base::OperationHierarchisationLinearBoundary::doHierarchisation(), sgpp::base::OperationHierarchisationLinearStretched::doHierarchisation(), sgpp::base::OperationHierarchisationModLinear::doHierarchisation(), sgpp::base::OperationHierarchisationLinearStretchedBoundary::doHierarchisation(), sgpp::base::OperationStencilHierarchisationLinear::doHierarchisation(), sgpp::base::OperationStencilHierarchisationModLinear::doHierarchisation(), sgpp::base::OperationHierarchisationPoly::doHierarchisation(), sgpp::base::OperationHierarchisationPolyBoundary::doHierarchisation(), sgpp::base::OperationHierarchisationModPoly::doHierarchisation(), sgpp::base::OperationHierarchisationPrewavelet::doHierarchisation(), sgpp::datadriven::OperationDensityMarginalizeLinear::doMarginalize(), sgpp::base::OperationQuadratureLinear::doQuadrature(), sgpp::base::OperationSecondMomentLinear::doQuadrature(), sgpp::base::OperationFirstMomentLinear::doQuadrature(), sgpp::base::OperationQuadraturePolyBoundary::doQuadrature(), sgpp::base::OperationQuadratureLinearBoundary::doQuadrature(), sgpp::base::OperationQuadraturePoly::doQuadrature(), sgpp::datadriven::OperationDotProductLinear::eval(), sgpp::datadriven::OperationDotProductModLinear::eval(), sgpp::base::OperationEvalModPolyNaive::eval(), sgpp::base::OperationEvalPolyBoundaryNaive::eval(), sgpp::base::OperationEvalPolyNaive::eval(), sgpp::base::OperationEvalLinearClenshawCurtisNaive::eval(), sgpp::base::OperationEvalLinearNaive::eval(), sgpp::base::OperationEvalLinearBoundaryNaive::eval(), sgpp::base::OperationEvalModLinearNaive::eval(), sgpp::base::OperationEvalModWaveletNaive::eval(), sgpp::base::OperationEvalWaveletBoundaryNaive::eval(), sgpp::base::OperationEvalWaveletNaive::eval(), sgpp::base::OperationEvalModFundamentalSplineNaive::eval(), sgpp::base::OperationEvalModBsplineNaive::eval(), sgpp::base::OperationEvalBsplineBoundaryNaive::eval(), sgpp::base::OperationEvalBsplineClenshawCurtisNaive::eval(), sgpp::base::OperationEvalFundamentalSplineNaive::eval(), sgpp::base::OperationEvalModBsplineClenshawCurtisNaive::eval(), sgpp::base::OperationEvalBsplineNaive::eval(), sgpp::optimization::HierarchisationSLE::evalBsplineBoundaryFunctionAtGridPoint(), sgpp::optimization::HierarchisationSLE::evalBsplineClenshawCurtisFunctionAtGridPoint(), sgpp::optimization::HierarchisationSLE::evalBsplineFunctionAtGridPoint(), sgpp::optimization::HierarchisationSLE::evalBsplineModifiedClenshawCurtisFunctionAtGridPoint(), sgpp::optimization::HierarchisationSLE::evalBsplineModifiedFunctionAtGridPoint(), sgpp::optimization::HierarchisationSLE::evalFundamentalSplineFunctionAtGridPoint(), sgpp::optimization::HierarchisationSLE::evalFundamentalSplineModifiedFunctionAtGridPoint(), sgpp::base::OperationEvalGradientWaveletNaive::evalGradient(), sgpp::base::OperationEvalGradientModWaveletNaive::evalGradient(), sgpp::base::OperationEvalGradientWaveletBoundaryNaive::evalGradient(), sgpp::base::OperationEvalGradientBsplineNaive::evalGradient(), sgpp::base::OperationEvalGradientModBsplineNaive::evalGradient(), sgpp::base::OperationEvalGradientBsplineBoundaryNaive::evalGradient(), sgpp::base::OperationEvalGradientFundamentalSplineNaive::evalGradient(), sgpp::base::OperationEvalGradientModBsplineClenshawCurtisNaive::evalGradient(), sgpp::base::OperationEvalGradientModFundamentalSplineNaive::evalGradient(), sgpp::base::OperationEvalGradientBsplineClenshawCurtisNaive::evalGradient(), sgpp::base::OperationEvalHessianModWaveletNaive::evalHessian(), sgpp::base::OperationEvalHessianWaveletNaive::evalHessian(), sgpp::base::OperationEvalHessianWaveletBoundaryNaive::evalHessian(), sgpp::base::OperationEvalHessianBsplineNaive::evalHessian(), sgpp::base::OperationEvalHessianModBsplineNaive::evalHessian(), sgpp::base::OperationEvalHessianBsplineBoundaryNaive::evalHessian(), sgpp::base::OperationEvalHessianBsplineClenshawCurtisNaive::evalHessian(), sgpp::base::OperationEvalHessianFundamentalSplineNaive::evalHessian(), sgpp::base::OperationEvalHessianModFundamentalSplineNaive::evalHessian(), sgpp::base::OperationEvalHessianModBsplineClenshawCurtisNaive::evalHessian(), sgpp::optimization::HierarchisationSLE::evalLinearBoundaryFunctionAtGridPoint(), sgpp::optimization::HierarchisationSLE::evalLinearClenshawCurtisFunctionAtGridPoint(), sgpp::optimization::HierarchisationSLE::evalLinearFunctionAtGridPoint(), sgpp::optimization::HierarchisationSLE::evalLinearModifiedFunctionAtGridPoint(), sgpp::base::OperationEvalPartialDerivativeModWaveletNaive::evalPartialDerivative(), sgpp::base::OperationEvalPartialDerivativeWaveletBoundaryNaive::evalPartialDerivative(), sgpp::base::OperationEvalPartialDerivativeWaveletNaive::evalPartialDerivative(), sgpp::base::OperationEvalPartialDerivativeBsplineBoundaryNaive::evalPartialDerivative(), sgpp::base::OperationEvalPartialDerivativeBsplineClenshawCurtisNaive::evalPartialDerivative(), sgpp::base::OperationEvalPartialDerivativeBsplineNaive::evalPartialDerivative(), sgpp::base::OperationEvalPartialDerivativeFundamentalSplineNaive::evalPartialDerivative(), sgpp::base::OperationEvalPartialDerivativeModBsplineNaive::evalPartialDerivative(), sgpp::base::OperationEvalPartialDerivativeModFundamentalSplineNaive::evalPartialDerivative(), sgpp::base::OperationEvalPartialDerivativeModBsplineClenshawCurtisNaive::evalPartialDerivative(), sgpp::optimization::HierarchisationSLE::evalWaveletBoundaryFunctionAtGridPoint(), sgpp::optimization::HierarchisationSLE::evalWaveletFunctionAtGridPoint(), sgpp::optimization::HierarchisationSLE::evalWaveletModifiedFunctionAtGridPoint(), sgpp::base::BreadthFirstSearch< FUNC >::execute(), sgpp::base::Grid::getDimension(), sgpp::base::PredictiveRefinement::getIndicator(), sgpp::pde::PDESolver::getNumberDimensions(), sgpp::base::HashRefinementBoundaries::getNumberOfRefinablePoints(), sgpp::base::HashRefinement::getNumberOfRefinablePoints(), sgpp::base::HashRefinementBoundariesMaxLevel::getNumberOfRefinablePointsToMaxLevel(), sgpp::base::HashGridIterator::HashGridIterator(), sgpp::datadriven::OperationRegularizationDiagonal::initAnisotropicPenalty(), sgpp::datadriven::OperationRegularizationDiagonalLinearBoundary::initH0HkLaplace(), sgpp::datadriven::OperationRegularizationDiagonalLinearBoundary::initHkmix(), sgpp::datadriven::OperationRegularizationDiagonal::initIsotropicPenalty(), sgpp::base::OperationEvalPrewavelet::integrate(), sgpp::base::AbstractRefinement::isRefinable(), main(), sgpp::pde::OperationMatrixLTwoDotPeriodic::mult(), sgpp::pde::UpDownOneOpDimWithShadow::mult(), sgpp::datadriven::GridPointBasedRefinementFunctor::operator()(), sgpp::base::AlgorithmEvaluationTransposed< BASIS >::operator()(), sgpp::base::DehierarchisationFundamentalSpline::operator()(), sgpp::base::HierarchisationModFundamentalSpline::operator()(), sgpp::base::HierarchisationFundamentalSpline::operator()(), sgpp::base::DehierarchisationModFundamentalSpline::operator()(), sgpp::datadriven::ZeroCrossingRefinementFunctor::operator()(), sgpp::base::AlgorithmEvaluation< BASIS >::operator()(), sgpp::base::GetAffectedBasisFunctions< BASIS >::operator()(), sgpp::base::AlgorithmEvaluationTransposed< BASIS >::rec(), sgpp::base::AlgorithmEvaluation< BASIS >::rec(), sgpp::base::GetAffectedBasisFunctions< BASIS >::rec(), sgpp::base::GetAffectedBasisFunctions< LinearBoundaryBasis< unsigned int, unsigned int > >::rec(), sgpp::base::GetAffectedBasisFunctions< PrewaveletBasis< unsigned int, unsigned int > >::rec(), sgpp::base::GetAffectedBasisFunctions< LinearPeriodicBasis< unsigned int, unsigned int > >::rec(), sgpp::base::GetAffectedBasisFunctions< PolyBoundaryBasis< unsigned int, unsigned int > >::rec(), sgpp::base::GetAffectedBasisFunctions< LinearBoundaryBasis< unsigned int, unsigned int > >::recBB(), sgpp::base::GetAffectedBasisFunctions< LinearStretchedBoundaryBasis< unsigned int, unsigned int > >::recBB(), sgpp::base::GetAffectedBasisFunctions< PolyBoundaryBasis< unsigned int, unsigned int > >::recBB(), sgpp::base::PrewaveletGridGenerator::refine(), sgpp::base::HashRefinementBoundaries::refineGridpoint(), sgpp::base::HashRefinement::refineGridpoint(), sgpp::base::HashRefinementBoundariesMaxLevel::refineGridpoint(), sgpp::base::SubspaceRefinement::refineGridpointsCollection(), sgpp::base::HashRefinementBoundariesMaxLevel::refineToMaxLevel(), sgpp::base::HashGenerator::regular_boundary_truncated_iter(), sgpp::base::HashGenerator::regular_iter(), sgpp::base::HashGenerator::regular_periodic_boundary_iter(), sgpp::base::HashGenerator::regularWithBoundaries(), sgpp::base::HashGenerator::regularWithPeriodicBoundaries(), sgpp::base::HashGridIterator::resetToLevelZero(), sgpp::base::HashGenerator::square_rec(), sgpp::base::HashGenerator::squareRoot(), sgpp::base::sweep< FUNC >::sweep1D(), sgpp::base::sweep< FUNC >::sweep1D_Boundary(), sgpp::base::HashGenerator::truncated(), and sgpp::optimization::file_io::writeGrid().

void sgpp::base::HashGridStorage::getLevelForIntegral ( DataMatrix level)

Converts this storage from AOS (array of structures) to SOA (structure of array) with modification to speed up iterative Laplace Calculations: the level won't contain the levels, it contains 2 to the neagative power of the level.

Parameters
levelDataMatrix to store the grid's modified level

References sgpp::base::DataMatrix::set().

void sgpp::base::HashGridStorage::getLevelIndexArraysForEval ( DataMatrix level,
DataMatrix index 
)

Converts this storage from AOS (array of structures) to SOA (structure of array) with modification to speed up iterative function evaluation.

The Level array won't contain the levels, it contains the level to the power of two

Parameters
levelDataMatrix to store the grid's level to the power of two
indexDataMatrix to store the grid's indices

References sgpp::base::DataMatrix::set().

Referenced by sgpp::pde::OperationMatrixLTwoDotPeriodic::mult().

void sgpp::base::HashGridStorage::getLevelIndexArraysForEval ( DataMatrixSP level,
DataMatrixSP index 
)

Converts this storage from AOS (array of structures) to SOA (structure of array) with modification to speed up iterative function evaluation.

The Level array won't contain the levels, it contains the level to the power of two

Parameters
levelDataMatrix to store the grid's level to the power of two
indexDataMatrix to store the grid's indices

References sgpp::base::DataMatrixSP::set().

void sgpp::base::HashGridStorage::getLevelIndexMaskArraysForModEval ( DataMatrix level,
DataMatrix index,
DataMatrix mask,
DataMatrix offset 
)

Converts this storage from AOS (array of structures) to SOA (structure of array) with modification to speed up iterative function evaluation.

The Level array won't contain the levels, it contains the level to the power of two.

The returned format is only useful for a multi-evaluation of modlinear grids

Parameters
levelDataMatrix to store the grid's level to the power of two
indexDataMatrix to store the grid's indices
maskDataMatrix to store masks of operations
offsetDataMatrix to store offset for operations

References sgpp::base::DataMatrix::set().

void sgpp::base::HashGridStorage::getLevelIndexMaskArraysForModEval ( DataMatrixSP level,
DataMatrixSP index,
DataMatrixSP mask,
DataMatrixSP offset 
)

Converts this storage from AOS (array of structures) to SOA (structure of array) with modification to speed up iterative function evaluation.

The Level array won't contain the levels, it contains the level to the power of two.

The returned format is only useful for a multi-evaluation of modlinear grids

Parameters
levelDataMatrixSP to store the grid's level to the power of two
indexDataMatrixSP to store the grid's indices
maskDataMatrixSP to store masks of operations
offsetDataMatrixSP to store offset for operations

References f, and sgpp::base::DataMatrixSP::set().

size_t sgpp::base::HashGridStorage::getMaxLevel ( ) const

returns the max.

depth in all dimension of the grid

size_t sgpp::base::HashGridStorage::getNumberOfInnerPoints ( ) const
HashGridPoint& sgpp::base::HashGridStorage::getPoint ( size_t  seq) const
inline

gets the index number for given gridpoint by its sequence number

Parameters
seqthe sequence number of the index
Returns
gridpoint object (pointer)

Referenced by sgpp::base::HashGenerator::cliques_iter(), sgpp::base::HashGenerator::createFullGridIterative(), sgpp::base::HashGenerator::createFullGridTruncatedIterative(), sgpp::base::HashRefinementBoundaries::createGridpointLevelZeroConsistency(), sgpp::base::AbstractRefinement::createGridpointSubroutine(), sgpp::datadriven::OperationDensityConditionalLinear::doConditional(), sgpp::datadriven::OperationDensityMarginalizeLinear::doMarginalize(), sgpp::base::OperationQuadraturePolyBoundary::doQuadrature(), sgpp::base::OperationQuadraturePoly::doQuadrature(), sgpp::datadriven::OperationDensitySampling1DLinear::doSampling1D(), sgpp::datadriven::OperationRosenblattTransformation1DLinear::doTransformation1D(), sgpp::datadriven::OperationInverseRosenblattTransformation1DLinear::doTransformation1D(), sgpp::datadriven::OperationInverseRosenblattTransformationLinear::doTransformation1D(), sgpp::datadriven::OperationRosenblattTransformationLinear::doTransformation1D(), sgpp::datadriven::OperationDotProductLinear::eval(), sgpp::datadriven::OperationDotProductModLinear::eval(), sgpp::base::OperationHierarchisationPrewavelet::expandGrid(), sgpp::pde::UpDownOneOpDimWithShadow::expandGrid(), sgpp::base::HashCoarsening::free_coarsen_NFirstOnly(), sgpp::datadriven::PiecewiseConstantSmoothedRegressionSystemMatrix::generateb(), sgpp::datadriven::LearnerVectorizedPerformanceCalculator::getGFlopAndGByte(), sgpp::pde::PDESolver::getGridNormalDistribution(), sgpp::base::GridDataBase::GridDataBase(), sgpp::base::HashGridIterator::hint(), sgpp::datadriven::OperationRegularizationDiagonal::initAnisotropicPenalty(), 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::OperationRegularizationDiagonalLinearBoundary::initH0HkLaplace(), sgpp::datadriven::OperationRegularizationDiagonalLinearBoundary::initHkmix(), sgpp::datadriven::OperationRegularizationDiagonal::initIsotropicPenalty(), sgpp::base::SurplusVolumeRefinementFunctor::operator()(), sgpp::base::SurplusVolumeCoarseningFunctor::operator()(), sgpp::datadriven::GridPointBasedRefinementFunctor::operator()(), sgpp::datadriven::ZeroCrossingRefinementFunctor::operator()(), sgpp::datadriven::DataBasedRefinementFunctor::operator()(), sgpp::base::GridPrinter::printLevelIndexGrid(), sgpp::base::GridPrinterForStretching::printSparseGrid(), sgpp::base::GridPrinter::printSparseGrid(), sgpp::base::GridPrinterForStretching::printSparseGridExpTransform(), sgpp::base::GridPrinter::printSparseGridExpTransform(), sgpp::base::PrewaveletGridGenerator::refine(), sgpp::base::HashRefinement::refineGridpoint1D(), sgpp::base::AbstractRefinement::refineGridpoint1D(), sgpp::base::HashGenerator::regular_boundary_truncated_iter(), sgpp::base::HashGenerator::regular_iter(), sgpp::base::HashGenerator::regular_periodic_boundary_iter(), sgpp::base::PredictiveRefinementIndicator::runOperator(), and sgpp::datadriven::LearnerSGDE::train().

size_t sgpp::base::HashGridStorage::getSize ( ) const

gets the size of the hashmap

Returns
returns the size of the hashmap

Referenced by sgpp::datadriven::AlgorithmAdaBoostBase::AlgorithmAdaBoostBase(), sgpp::base::DirichletUpdateVector::applyDirichletConditions(), sgpp::base::DirichletGridConverter::buildInnerGridWithCoefs(), sgpp::base::HashGenerator::cliques(), sgpp::base::HashGenerator::cliques_iter(), python.uq.uq_setting.UQSetting.UQSetting::convert(), sgpp::base::HashGenerator::createFullGridIterative(), sgpp::base::HashGenerator::createFullGridTruncatedIterative(), sgpp::datadriven::OperationDensityConditionalLinear::doConditional(), sgpp::optimization::OperationMultipleHierarchisationModBspline::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationModLinear::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationModWavelet::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationWavelet::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationWaveletBoundary::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationBspline::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationBsplineBoundary::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationLinear::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationLinearBoundary::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationModBsplineClenshawCurtis::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationBsplineClenshawCurtis::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationLinearClenshawCurtis::doDehierarchisation(), sgpp::datadriven::OperationDensityMarginalizeLinear::doMarginalize(), sgpp::datadriven::AlgorithmAdaBoostBase::doRefinement(), sgpp::datadriven::OperationDensitySampling1DLinear::doSampling1D(), sgpp::datadriven::OperationRosenblattTransformation1DLinear::doTransformation1D(), sgpp::datadriven::OperationInverseRosenblattTransformation1DLinear::doTransformation1D(), sgpp::datadriven::OperationInverseRosenblattTransformationLinear::doTransformation1D(), sgpp::datadriven::OperationRosenblattTransformationLinear::doTransformation1D(), sgpp::datadriven::OperationDotProductModLinear::eval(), sgpp::datadriven::OperationDotProductLinear::eval(), sgpp::base::OperationEvalModPolyNaive::eval(), sgpp::base::OperationEvalPolyBoundaryNaive::eval(), sgpp::base::OperationEvalPolyNaive::eval(), sgpp::base::OperationEvalLinearClenshawCurtisNaive::eval(), sgpp::base::OperationEvalLinearNaive::eval(), sgpp::base::OperationEvalLinearBoundaryNaive::eval(), sgpp::base::OperationEvalModLinearNaive::eval(), sgpp::base::OperationEvalModWaveletNaive::eval(), sgpp::base::OperationEvalWaveletBoundaryNaive::eval(), sgpp::base::OperationEvalWaveletNaive::eval(), sgpp::base::OperationEvalModBsplineNaive::eval(), sgpp::base::OperationEvalModFundamentalSplineNaive::eval(), sgpp::base::OperationEvalBsplineClenshawCurtisNaive::eval(), sgpp::base::OperationEvalBsplineBoundaryNaive::eval(), sgpp::base::OperationEvalFundamentalSplineNaive::eval(), sgpp::base::OperationEvalModBsplineClenshawCurtisNaive::eval(), sgpp::base::OperationEvalBsplineNaive::eval(), sgpp::optimization::IterativeGridGenerator::evalFunction(), sgpp::base::OperationEvalGradientWaveletNaive::evalGradient(), sgpp::base::OperationEvalGradientModWaveletNaive::evalGradient(), sgpp::base::OperationEvalGradientWaveletBoundaryNaive::evalGradient(), sgpp::base::OperationEvalGradientBsplineNaive::evalGradient(), sgpp::base::OperationEvalGradientBsplineBoundaryNaive::evalGradient(), sgpp::base::OperationEvalGradientFundamentalSplineNaive::evalGradient(), sgpp::base::OperationEvalGradientModBsplineNaive::evalGradient(), sgpp::base::OperationEvalGradientBsplineClenshawCurtisNaive::evalGradient(), sgpp::base::OperationEvalGradientModBsplineClenshawCurtisNaive::evalGradient(), sgpp::base::OperationEvalGradientModFundamentalSplineNaive::evalGradient(), sgpp::base::OperationEvalHessianWaveletNaive::evalHessian(), sgpp::base::OperationEvalHessianModWaveletNaive::evalHessian(), sgpp::base::OperationEvalHessianWaveletBoundaryNaive::evalHessian(), sgpp::base::OperationEvalHessianBsplineNaive::evalHessian(), sgpp::base::OperationEvalHessianModBsplineNaive::evalHessian(), sgpp::base::OperationEvalHessianModFundamentalSplineNaive::evalHessian(), sgpp::base::OperationEvalHessianBsplineBoundaryNaive::evalHessian(), sgpp::base::OperationEvalHessianBsplineClenshawCurtisNaive::evalHessian(), sgpp::base::OperationEvalHessianFundamentalSplineNaive::evalHessian(), sgpp::base::OperationEvalHessianModBsplineClenshawCurtisNaive::evalHessian(), sgpp::base::OperationEvalPartialDerivativeModWaveletNaive::evalPartialDerivative(), sgpp::base::OperationEvalPartialDerivativeWaveletBoundaryNaive::evalPartialDerivative(), sgpp::base::OperationEvalPartialDerivativeWaveletNaive::evalPartialDerivative(), sgpp::base::OperationEvalPartialDerivativeBsplineBoundaryNaive::evalPartialDerivative(), sgpp::base::OperationEvalPartialDerivativeBsplineClenshawCurtisNaive::evalPartialDerivative(), sgpp::base::OperationEvalPartialDerivativeBsplineNaive::evalPartialDerivative(), sgpp::base::OperationEvalPartialDerivativeModBsplineNaive::evalPartialDerivative(), sgpp::base::OperationEvalPartialDerivativeModFundamentalSplineNaive::evalPartialDerivative(), sgpp::base::OperationEvalPartialDerivativeFundamentalSplineNaive::evalPartialDerivative(), sgpp::base::OperationEvalPartialDerivativeModBsplineClenshawCurtisNaive::evalPartialDerivative(), sgpp::base::BreadthFirstSearch< FUNC >::execute(), sgpp::base::OperationHierarchisationPrewavelet::expandGrid(), sgpp::pde::UpDownOneOpDimWithShadow::expandGrid(), sgpp::base::HashCoarsening::free_coarsen(), sgpp::base::HashCoarsening::free_coarsen_NFirstOnly(), sgpp::base::HashRefinementBoundaries::free_refine(), sgpp::base::HashRefinement::free_refine(), sgpp::base::SubspaceRefinement::free_refine(), sgpp::base::PredictiveRefinement::free_refine(), sgpp::base::HashGenerator::full(), sgpp::base::HashGenerator::fullWithBoundary(), sgpp::optimization::IterativeGridGeneratorSOO::generate(), sgpp::optimization::IterativeGridGeneratorLinearSurplus::generate(), sgpp::optimization::IterativeGridGeneratorRitterNovak::generate(), sgpp::datadriven::PiecewiseConstantSmoothedRegressionSystemMatrix::generateb(), sgpp::optimization::HierarchisationSLE::getDimension(), python.uq.learner.Interpolant.Interpolant::getMSE(), sgpp::pde::PDESolver::getNumberGridPoints(), sgpp::base::HashRefinementBoundaries::getNumberOfRefinablePoints(), sgpp::base::HashRefinement::getNumberOfRefinablePoints(), sgpp::optimization::HashRefinementMultiple::getNumberOfRefinablePoints(), sgpp::base::HashRefinementBoundariesMaxLevel::getNumberOfRefinablePointsToMaxLevel(), sgpp::base::HashCoarsening::getNumberOfRemovablePoints(), sgpp::base::Grid::getSize(), sgpp::base::GridDataBase::GridDataBase(), HashGridStorage(), sgpp::base::OperationEvalPrewavelet::integrate(), main(), sgpp::pde::OperationMatrixLTwoDotPeriodic::mult(), sgpp::pde::UpDownOneOpDimWithShadow::mult(), sgpp::datadriven::OperationRegularizationDiagonal::mult(), sgpp::base::DirichletUpdateVector::multiply(), sgpp::base::DirichletUpdateVector::multiplyBoundary(), sgpp::base::DirichletUpdateVector::multiplyBoundaryVector(), sgpp::datadriven::OperationMultiEvalStreaming::multTranspose(), sgpp::datadriven::OperationMultiEvalModMaskStreaming::multTranspose(), sgpp::datadriven::OperationRegularizationDiagonal::OperationRegularizationDiagonal(), sgpp::base::DehierarchisationFundamentalSpline::operator()(), sgpp::base::HierarchisationModFundamentalSpline::operator()(), sgpp::base::HierarchisationFundamentalSpline::operator()(), sgpp::base::DehierarchisationModFundamentalSpline::operator()(), sgpp::pde::DowndPhidPhiBBIterativeLinearStretched::operator()(), sgpp::pde::UpdPhidPhiBBIterativeLinearBoundary::operator()(), sgpp::pde::DowndPhidPhiBBIterativeLinearBoundary::operator()(), sgpp::pde::DowndPhidPhiBBIterativeLinearStretchedBoundary::operator()(), sgpp::pde::DowndPhidPhiBBIterativeLinear::operator()(), sgpp::pde::UpdPhidPhiBBIterativeLinearStretchedBoundary::operator()(), sgpp::optimization::Printer::printIterativeGridGenerator(), sgpp::base::DirichletGridConverter::rebuildInnerGridWithCoefs(), sgpp::base::PrewaveletGridGenerator::refine(), sgpp::base::SubspaceRefinement::refineGridpointsCollection(), sgpp::pde::PDESolver::refineInitialGridSurplus(), sgpp::pde::PDESolver::refineInitialGridSurplusSubDomain(), sgpp::pde::PDESolver::refineInitialGridSurplusToMaxLevel(), sgpp::pde::PDESolver::refineInitialGridSurplusToMaxLevelSubDomain(), sgpp::base::HashRefinementBoundariesMaxLevel::refineToMaxLevel(), sgpp::base::HashGenerator::regular(), sgpp::base::HashGenerator::regular_boundary_truncated_iter(), sgpp::base::HashGenerator::regular_iter(), sgpp::base::HashGenerator::regular_periodic_boundary_iter(), sgpp::base::HashGenerator::regularWithBoundaries(), sgpp::base::HashGenerator::regularWithPeriodicBoundaries(), python.uq.uq_setting.UQSetting.UQSetting::runSamples(), python.uq.uq_setting.UQSetting.UQSetting::runSamples_withoutDistribution(), sgpp::base::DirichletUpdateVector::setBoundariesToZero(), sgpp::base::DirichletUpdateVector::setInnerPointsToZero(), sgpp::base::OperationHierarchisationPrewavelet::shrinkGrid(), sgpp::pde::UpDownOneOpDimWithShadow::shrinkGrid(), sgpp::base::HashGenerator::squareRoot(), sgpp::datadriven::LearnerPiecewiseConstantSmoothedRegression::train(), sgpp::base::HashGenerator::truncated(), sgpp::optimization::IterativeGridGenerator::undoRefinement(), and sgpp::optimization::file_io::writeGrid().

bool sgpp::base::HashGridStorage::isValidSequenceNumber ( size_t  s)
inline

Tests if seq number does not point to a valid grid point.

Parameters
ssequence number that should be tested
Returns
true if we are not EOF

Referenced by sgpp::base::HashGridIterator::getGridDepth(), sgpp::pde::PhiPhiUpBBLinearBoundary::operator()(), sgpp::pde::PhiPhiUpBBLinearStretchedBoundary::operator()(), sgpp::base::DehierarchisationLinearBoundary::operator()(), sgpp::pde::PhiPhiDownBBLinearBoundary::operator()(), sgpp::base::HierarchisationLinearBoundary::operator()(), sgpp::pde::LaplaceUpPrewavelet::operator()(), sgpp::base::DehierarchisationLinearStretchedBoundary::operator()(), sgpp::base::HierarchisationLinearStretchedBoundary::operator()(), sgpp::pde::LaplaceUpGradientPrewavelet::operator()(), sgpp::base::ConvertPrewaveletToLinear::operator()(), sgpp::base::ConvertLinearToPrewavelet::operator()(), sgpp::pde::LaplaceEnhancedDownBBLinearBoundary::operator()(), sgpp::pde::LaplaceEnhancedUpBBLinearBoundary::operator()(), sgpp::pde::LaplaceDownGradientPrewavelet::operator()(), sgpp::pde::dPhidPhiUpModLinear::rec(), sgpp::pde::PhiPhiDownModLinear::rec(), sgpp::pde::PhiPhiUpModLinear::rec(), sgpp::pde::dPhidPhiDownModLinear::rec(), sgpp::base::DehierarchisationLinearStretched::rec(), sgpp::base::DehierarchisationModLinear::rec(), sgpp::pde::PhiPhiUpBBLinearStretched::rec(), sgpp::pde::PhiPhiDownBBLinear::rec(), sgpp::pde::PhiPhiUpBBLinear::rec(), sgpp::base::DehierarchisationLinear::rec(), sgpp::pde::PhiPhiDownBBLinearStretched::rec(), sgpp::base::HierarchisationLinear::rec(), sgpp::base::HierarchisationModLinear::rec(), sgpp::base::HierarchisationLinearStretched::rec(), sgpp::base::DehierarchisationPoly::rec(), sgpp::base::DehierarchisationPolyBoundary::rec(), sgpp::base::HierarchisationPolyBoundary::rec(), sgpp::base::StencilHierarchisationModLinear::rec(), sgpp::base::StencilHierarchisationLinear::rec(), sgpp::base::StencilDehierarchisationModLinear::rec(), sgpp::base::StencilDehierarchisationLinear::rec(), sgpp::base::DehierarchisationModPoly::rec(), sgpp::base::HierarchisationModPoly::rec(), sgpp::base::HierarchisationPoly::rec(), sgpp::pde::LaplaceEnhancedUpBBLinear::rec(), sgpp::base::AlgorithmEvaluationTransposed< BASIS >::rec(), sgpp::pde::LaplaceEnhancedDownBBLinear::rec(), sgpp::base::AlgorithmEvaluation< BASIS >::rec(), sgpp::base::GetAffectedBasisFunctions< BASIS >::rec(), sgpp::base::GetAffectedBasisFunctions< LinearBoundaryBasis< unsigned int, unsigned int > >::rec(), sgpp::base::GetAffectedBasisFunctions< LinearPeriodicBasis< unsigned int, unsigned int > >::rec(), sgpp::base::GetAffectedBasisFunctions< PolyBoundaryBasis< unsigned int, unsigned int > >::rec(), sgpp::pde::LaplaceEnhancedUpBBLinear::rec_GL(), sgpp::pde::LaplaceEnhancedDownBBLinear::rec_GL(), sgpp::pde::LaplaceEnhancedUpBBLinear::rec_grad(), sgpp::pde::LaplaceEnhancedDownBBLinear::rec_grad(), sgpp::pde::LaplaceEnhancedUpBBLinear::rec_LG(), sgpp::pde::LaplaceEnhancedDownBBLinear::rec_LG(), sgpp::pde::PhiPhiDownBBLinear::recBB(), sgpp::pde::PhiPhiUpBBLinear::recBB(), sgpp::pde::LaplaceEnhancedUpBBLinear::recBB(), sgpp::pde::LaplaceEnhancedDownBBLinear::recBB(), sgpp::base::GetAffectedBasisFunctions< LinearBoundaryBasis< unsigned int, unsigned int > >::recBB(), sgpp::base::GetAffectedBasisFunctions< LinearStretchedBoundaryBasis< unsigned int, unsigned int > >::recBB(), sgpp::base::GetAffectedBasisFunctions< PolyBoundaryBasis< unsigned int, unsigned int > >::recBB(), sgpp::pde::LaplaceEnhancedUpBBLinear::recBB_GL(), sgpp::pde::LaplaceEnhancedDownBBLinear::recBB_GL(), sgpp::pde::LaplaceEnhancedUpBBLinear::recBB_grad(), sgpp::pde::LaplaceEnhancedDownBBLinear::recBB_grad(), sgpp::pde::LaplaceEnhancedUpBBLinear::recBB_LG(), sgpp::pde::LaplaceEnhancedDownBBLinear::recBB_LG(), sgpp::pde::LaplaceEnhancedUpBBLinear::recBB_LL(), sgpp::pde::LaplaceEnhancedDownBBLinear::recBB_LL(), sgpp::base::sweep< FUNC >::sweep_Boundary_rec(), and sgpp::base::sweep< FUNC >::sweep_rec().

HashGridPoint& sgpp::base::HashGridStorage::operator[] ( size_t  seq)
inline

gets the index number for given gridpoint by its sequence number

Parameters
seqthe sequence number of the index
Returns
gridpoint object (pointer)
const HashGridPoint& sgpp::base::HashGridStorage::operator[] ( size_t  seq) const
inline

gets the index number for given gridpoint by its sequence number

Parameters
seqthe sequence number of the index
Returns
gridpoint object (constant pointer)
void sgpp::base::HashGridStorage::recalcLeafProperty ( )

Recalculates the leaf-property of every grid point.

This might be useful in case of a grid unserialization

References sgpp::base::HashGridPoint::get(), sgpp::base::HashGridPoint::getLeftChild(), sgpp::base::HashGridPoint::getRightChild(), isContaining(), sgpp::base::HashGridPoint::set(), and sgpp::base::HashGridPoint::setLeaf().

Referenced by deletePoints().

void sgpp::base::HashGridStorage::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

Referenced by sgpp::base::Grid::setAlgorithmicDimensions().

void sgpp::base::HashGridStorage::setBoundingBox ( BoundingBox boundingBox)

sets the bounding box of the current grid

Parameters
boundingBoxbounding box to which the HashGridStorage's pointer is set

Referenced by sgpp::base::Grid::setBoundingBox().

void sgpp::base::HashGridStorage::setStretching ( Stretching stretching)
unsigned int sgpp::base::HashGridStorage::store ( point_pointer  index)
inline

stores a given index in the hashmap

Parameters
indexpointer to index that should be stored
Returns
sequence number
std::string sgpp::base::HashGridStorage::toString ( ) const
void sgpp::base::HashGridStorage::toString ( std::ostream &  stream) const
void sgpp::base::HashGridStorage::unserializeNoAlgoDims ( std::string &  istr)

unserializes the grid from a string, algorithmic dimensions are not reseted

Parameters
istrthe string that contains the data

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