SG++-Doxygen-Documentation
|
The CombigridEvaluator class evaluates a numerical method on different full grids and combines them using the combination technique. More...
#include <CombigridEvaluator.hpp>
Public Member Functions | |
bool | addLevel (MultiIndex const &level) |
For some reason, SWIG cannot convert the shared_ptr into the more abstract type, so we need this 'duplicate'. More... | |
void | addLevelsFromSerializedStructure (std::string serializedStructure) |
Equivalent to deserializing serializedStructure and then calling addLevelsFromStructure(). More... | |
void | addLevelsFromStructure (std::shared_ptr< TreeStorage< uint8_t >> storage) |
Adds all levels for which an entry is contained in storage. More... | |
void | clear () |
Clears the already computed values. More... | |
CombigridEvaluator (size_t numDimensions, std::shared_ptr< AbstractFullGridEvaluator< V >> multiEval, std::shared_ptr< NormStrategy< V >> normStrategy=nullptr) | |
Constructor. More... | |
bool | containsLevel (MultiIndex const &level) |
std::shared_ptr< AbstractMultiStorage< V > > | differences () const |
Returns the storage with the Delta-values. More... | |
std::vector< base::DataVector > | getAllGridPoints () |
double | getDifferenceNorm (MultiIndex const &level) |
base::DataMatrix | getGridPointMatrix () |
std::shared_ptr< TreeStorage< uint8_t > > | getLevelStructure () |
std::vector< ThreadPool::Task > | getLevelTasks (MultiIndex const &level, ThreadPool::Task callback) |
std::string | getSerializedLevelStructure () |
size_t | getUpperPointBound () const |
V | getValue () const |
size_t | maxNewPoints (MultiIndex const &level) |
size_t | maxNumPointsForRegular (size_t q) |
size_t | numDims () const |
size_t | numPoints (MultiIndex const &level) |
virtual void | setMutex (std::shared_ptr< std::recursive_mutex > mutexPtr) |
Sets the mutex that is locked (if not nullptr) whenever problematic operations on data are executed. More... | |
Public Member Functions inherited from sgpp::combigrid::AbstractLevelEvaluator | |
virtual | ~AbstractLevelEvaluator () |
The CombigridEvaluator class evaluates a numerical method on different full grids and combines them using the combination technique.
The numerical method on a full grid is given by an AbstractFullGridEvaluator. The template parameter V determines whether this does single or multi evaluation, confer also the description in algebraic/FloatArrayVector.hpp
|
inline |
Constructor.
numDimensions | Dimensionality of the problem. |
multiEval | Evaluation method for full grids whose results are then combined into a single value. |
normStrategy | defines how the norm of differences is computed. |
|
inlinevirtual |
For some reason, SWIG cannot convert the shared_ptr into the more abstract type, so we need this 'duplicate'.
Performs an evaluation on the given level and adds the gained information to the current numerical approximation value.
Implements sgpp::combigrid::AbstractLevelEvaluator.
References CGLOG, sgpp::combigrid::CombigridEvaluator< V >::containsLevel(), level, sgpp::combigrid::CombigridEvaluator< V >::maxNewPoints(), python.convergence::norm(), and python.utils.pca_normalize_dataset::V.
Referenced by sgpp::combigrid::CombigridEvaluator< V >::addLevelsFromStructure().
|
inline |
Equivalent to deserializing serializedStructure and then calling addLevelsFromStructure().
"Inverse" operation to getSerializedLevelStructure().
References sgpp::combigrid::CombigridEvaluator< V >::addLevelsFromStructure().
|
inline |
Adds all levels for which an entry is contained in storage.
"Inverse" operation to getLevelStructure().
References sgpp::combigrid::CombigridEvaluator< V >::addLevel().
Referenced by sgpp::combigrid::CombigridEvaluator< V >::addLevelsFromSerializedStructure().
|
inlinevirtual |
Clears the already computed values.
This method has to be called if a parameter changed etc.
Implements sgpp::combigrid::AbstractLevelEvaluator.
|
inlinevirtual |
Implements sgpp::combigrid::AbstractLevelEvaluator.
Referenced by sgpp::combigrid::CombigridEvaluator< V >::addLevel().
|
inline |
Returns the storage with the Delta-values.
|
inlinevirtual |
Implements sgpp::combigrid::AbstractLevelEvaluator.
References friedman::p.
Referenced by sgpp::combigrid::CombigridEvaluator< V >::getGridPointMatrix().
|
inlinevirtual |
Implements sgpp::combigrid::AbstractLevelEvaluator.
|
inlinevirtual |
Implements sgpp::combigrid::AbstractLevelEvaluator.
References sgpp::combigrid::CombigridEvaluator< V >::getAllGridPoints(), python.statsfileInfo::i, and m.
|
inlinevirtual |
Implements sgpp::combigrid::AbstractLevelEvaluator.
Referenced by sgpp::combigrid::CombigridEvaluator< V >::getSerializedLevelStructure().
|
inlinevirtual |
level | the level which one wants to compute |
callback | This callback is called (with already locked mutex) from inside one of the returned tasks when all tasks for the given level are completed and the level can be added. |
Implements sgpp::combigrid::AbstractLevelEvaluator.
|
inline |
References sgpp::combigrid::CombigridEvaluator< V >::getLevelStructure().
|
inlinevirtual |
Implements sgpp::combigrid::AbstractLevelEvaluator.
|
inline |
|
inlinevirtual |
Implements sgpp::combigrid::AbstractLevelEvaluator.
Referenced by sgpp::combigrid::CombigridEvaluator< V >::addLevel(), and sgpp::combigrid::CombigridEvaluator< V >::maxNumPointsForRegular().
|
inlinevirtual |
Implements sgpp::combigrid::AbstractLevelEvaluator.
References sgpp::combigrid::CombigridEvaluator< V >::maxNewPoints().
|
inlinevirtual |
Implements sgpp::combigrid::AbstractLevelEvaluator.
|
inlinevirtual |
Implements sgpp::combigrid::AbstractLevelEvaluator.
|
inlinevirtual |
Sets the mutex that is locked (if not nullptr) whenever problematic operations on data are executed.
Implements sgpp::combigrid::AbstractLevelEvaluator.