![]() |
SG++-Doxygen-Documentation
|
Implementation of the AbstractFullGridLinearEvaluator class using a callback function that If you want to be able to use different function values at the same point in different levels (for example because you are implementing a PDE solver), set exploitNesting to false in the constructor of CombigridTreeStorage. More...
#include <FullGridGridBasedEvaluator.hpp>
Protected Member Functions | |
void | addResults (MultiIndex const &level, std::shared_ptr< TreeStorage< double >> results) |
Protected Attributes | |
GridFunction | gridFunction |
std::shared_ptr< TreeStorage< uint8_t > > | precomputedLevels |
![]() | |
std::vector< std::shared_ptr< AbstractLinearEvaluator< V > > > | evaluatorPrototypes |
std::shared_ptr< AbstractFullGridSummationStrategy< V > > | summationStrategy |
FullGridSummationStrategyType | summationStrategyType |
![]() | |
std::shared_ptr< std::recursive_mutex > | mutexPtr |
Pointer to a mutex that is locked when doing critical operations on data. More... | |
std::vector< std::shared_ptr< AbstractPointHierarchy > > | pointHierarchies |
std::shared_ptr< AbstractCombigridStorage > | storage |
Provides access to the function values (stored or computed on demand) More... | |
Implementation of the AbstractFullGridLinearEvaluator class using a callback function that If you want to be able to use different function values at the same point in different levels (for example because you are implementing a PDE solver), set exploitNesting to false in the constructor of CombigridTreeStorage.
|
inline |
Constructor.
storage | Storage that stores and provides the function values for each grid point. |
evaluatorPrototypes | prototype objects for the evaluators that are cloned to get an evaluator for each dimension and each level. |
pointHierarchies | PointHierarchy objects for each dimension providing the points for each level and information about their ordering. |
gridFunction | callback function that is called with a grid as parameters and should |
summationStrategyType | strategy to gather the results of the univariate evaluators on each anisotropic full grid |
return a TreeStorage that contains the values at these grid points
|
inlinevirtual |
|
inlineprotected |
References sgpp::combigrid::AbstractFullGridEvaluationStrategy< V >::evaluatorPrototypes, sgpp::combigrid::MultiIndexIterator::getMultiIndex(), sgpp::combigrid::AbstractFullGridEvaluator< V >::pointHierarchies, and sgpp::combigrid::AbstractFullGridEvaluator< V >::storage.
Referenced by sgpp::combigrid::FullGridGridBasedEvaluator< V >::eval(), and sgpp::combigrid::FullGridGridBasedEvaluator< V >::getLevelTasks().
|
inlinevirtual |
Evaluates the function given through the storage for a certain level-multi-index (see class description).
Implements sgpp::combigrid::AbstractFullGridEvaluator< V >.
References sgpp::combigrid::FullGridGridBasedEvaluator< V >::addResults(), sgpp::combigrid::AbstractFullGridEvaluationStrategy< V >::evaluatorPrototypes, sgpp::combigrid::AbstractFullGridEvaluator< V >::getTensorGrid(), sgpp::combigrid::FullGridGridBasedEvaluator< V >::gridFunction, sgpp::combigrid::AbstractFullGridEvaluator< V >::pointHierarchies, and sgpp::combigrid::AbstractFullGridEvaluationStrategy< V >::summationStrategy.
Referenced by python.uq.analysis.asgc.ASGCAnalysis.ASGCAnalysis::estimateDensity().
|
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::AbstractFullGridEvaluator< V >.
References sgpp::combigrid::FullGridGridBasedEvaluator< V >::addResults(), python.classifier::callback, sgpp::combigrid::AbstractFullGridEvaluationStrategy< V >::evaluatorPrototypes, sgpp::combigrid::AbstractFullGridEvaluator< V >::getTensorGrid(), grid(), sgpp::combigrid::FullGridGridBasedEvaluator< V >::gridFunction, sgpp::combigrid::AbstractFullGridEvaluator< V >::mutexPtr, and sgpp::combigrid::AbstractFullGridEvaluator< V >::pointHierarchies.
|
protected |
|
protected |