This class provides an adaption strategy that is equivalent to adding levels regularly.
More...
|
virtual std::shared_ptr< LevelManager > | clone () |
|
| RegularLevelManager (std::shared_ptr< AbstractLevelEvaluator > levelEvaluator) |
|
| RegularLevelManager () |
|
virtual | ~RegularLevelManager () |
|
void | addLevel (MultiIndex const &level) |
| Calls addLevel() on the underlying CombigridEvaluator. More...
|
|
virtual void | addLevelsAdaptive (size_t maxNumPoints) |
| Adds levels in an adaptive manner, such that the given maximum number of function evaluations (grid points) is not exceeded. More...
|
|
void | addLevelsAdaptiveByNumLevels (size_t numLevels=1) |
| Queue based addLevel-type function. More...
|
|
virtual void | addLevelsAdaptiveParallel (size_t maxNumPoints, size_t numThreads) |
| Does the same as addLevelsAdaptive(), but with parallel function evaluations. More...
|
|
void | addLevelsFromSerializedStructure (std::string serializedStructure) |
| Equivalent to deserializing serializedStructure and then calling addLevelsFromStructure(). More...
|
|
void | addLevelsFromSerializedStructureParallel (std::string serializedStructure, size_t numThreads) |
| Does the same as addLevelsFromSerializedStructure(), but with parallel precomputation of function values using numThreads threads. More...
|
|
void | addLevelsFromStructure (std::shared_ptr< TreeStorage< uint8_t >> storage) |
| Adds all levels for which an entry is contained in storage. More...
|
|
void | addLevelsFromStructureParallel (std::shared_ptr< TreeStorage< uint8_t >> storage, size_t numThreads=4) |
| Does the same as addLevelsFromStructure(), but with parallel precomputation of function values using numThreads threads. More...
|
|
void | addRegularLevels (size_t q) |
|
void | addRegularLevelsByNumPoints (size_t maxNumPoints) |
| Adds a set of level multi-indices. More...
|
|
void | addRegularLevelsByNumPointsParallel (size_t maxNumPoints, size_t numThreads) |
| Does the same as addRegularLevelsByNumPoints(), but with parallel precomputation of function values. More...
|
|
void | addRegularLevelsParallel (size_t q, size_t numThreads) |
| Does the same as addRegularLevels(), but with parallel precomputation of function values. More...
|
|
sgpp::base::DataMatrix | convertLevelStructureToMatrix (std::shared_ptr< sgpp::combigrid::TreeStorage< uint8_t >> const &levelstructure, size_t numDims) |
| writes a given level structure to a matrix More...
|
|
void | disableStatsCollection () |
| Disables the collection of information on subspaces during refinement. More...
|
|
void | enableStatsCollection () |
| Enables the collection of information on subspaces during refinement. More...
|
|
std::vector< base::DataVector > | getAllGridPoints () |
|
base::DataMatrix | getGridPointMatrix () |
|
std::shared_ptr< LevelInfos > | getInfoOnAddedLevels () |
| Returns information on all the subspaces that is sorted with respect to the iterations when they have been added to the combigrid during refinement. More...
|
|
std::shared_ptr< TreeStorage< uint8_t > > | getLevelStructure () const |
|
std::vector< MultiIndex > | getRegularLevels (size_t q) |
|
std::string | getSerializedLevelStructure () const |
|
size_t | getUpperPointBound () const |
|
| LevelManager (std::shared_ptr< AbstractLevelEvaluator > levelEvaluator, bool collectStats=true) |
| Constructor. More...
|
|
| LevelManager () |
| Default constructor. More...
|
|
size_t | maxNumPointsForRegular (size_t q) |
|
virtual size_t | numDims () const |
|
size_t | numGridPoints () |
|
void | printLevelStructure (std::shared_ptr< sgpp::combigrid::TreeStorage< uint8_t >> const &levelstructure) |
| prints a given level structure More...
|
|
void | setLevelEvaluator (std::shared_ptr< AbstractLevelEvaluator > levelEvaluator) |
| Sets the level evaluator (normally a CombigridEvaluator). More...
|
|
virtual | ~LevelManager () |
|
This class provides an adaption strategy that is equivalent to adding levels regularly.
It can be used to polymorphically switch between regular and adaptive level generation by using this LevelManager or another LevelManager.