SG++
sgpp::combigrid::AbstractFullGridSummationStrategy< V > Class Template Referenceabstract

#include <AbstractFullGridSummationStrategy.hpp>

Inheritance diagram for sgpp::combigrid::AbstractFullGridSummationStrategy< V >:
sgpp::combigrid::FullGridLinearSummationStrategy< V > sgpp::combigrid::FullGridOptimizedPCESummationStrategy< V > sgpp::combigrid::FullGridPCESummationStrategy< V > sgpp::combigrid::FullGridQuadraticSummationStrategy< V > sgpp::combigrid::FullGridTensorVarianceSummationStrategy< V > sgpp::combigrid::FullGridVarianceSummationStrategy< V >

Public Member Functions

 AbstractFullGridSummationStrategy (std::shared_ptr< AbstractCombigridStorage > storage, std::vector< std::shared_ptr< AbstractLinearEvaluator< V >>> evaluatorPrototypes, std::vector< std::shared_ptr< AbstractPointHierarchy >> pointHierarchies)
 Constructor. More...
 
virtual V eval (MultiIndex const &level)=0
 
void setParameters (std::vector< V > const &params)
 Sets the parameters for the evaluators. More...
 
virtual ~AbstractFullGridSummationStrategy ()
 

Protected Attributes

std::vector< std::vector< V > > basisValues
 For each dimension, this contains a vector of weights which are used as coefficients for linearly combining the function values at different grid points. More...
 
std::vector< std::shared_ptr< AbstractLinearEvaluator< V > > > evaluatorPrototypes
 
std::vector< std::vector< std::shared_ptr< AbstractLinearEvaluator< V > > > > evaluators
 
std::vector< V > parameters
 
std::vector< V > partialProducts
 
std::vector< std::shared_ptr< AbstractPointHierarchy > > pointHierarchies
 
std::shared_ptr< AbstractCombigridStoragestorage
 

Constructor & Destructor Documentation

template<typename V >
sgpp::combigrid::AbstractFullGridSummationStrategy< V >::AbstractFullGridSummationStrategy ( std::shared_ptr< AbstractCombigridStorage storage,
std::vector< std::shared_ptr< AbstractLinearEvaluator< V >>>  evaluatorPrototypes,
std::vector< std::shared_ptr< AbstractPointHierarchy >>  pointHierarchies 
)
inline

Constructor.

Parameters
storageStorage that stores and provides the function values for each grid point.
evaluatorPrototypesprototype objects for the evaluators that are cloned to get an evaluator for each dimension and each level.
pointHierarchiesPointHierarchy objects for each dimension providing the points for each level and information about their ordering.
template<typename V >
virtual sgpp::combigrid::AbstractFullGridSummationStrategy< V >::~AbstractFullGridSummationStrategy ( )
inlinevirtual

References level.

Member Function Documentation

template<typename V >
void sgpp::combigrid::AbstractFullGridSummationStrategy< V >::setParameters ( std::vector< V > const &  params)
inline

Sets the parameters for the evaluators.

Each dimension in which the evaluator does not need a parameter is skipped. So if only the evaluators at dimensions 1 and 3 need a parameter, params.size() should be 2 (or at least 2)

Member Data Documentation

template<typename V >
std::vector<std::vector<V> > sgpp::combigrid::AbstractFullGridSummationStrategy< V >::basisValues
protected

For each dimension, this contains a vector of weights which are used as coefficients for linearly combining the function values at different grid points.

Referenced by sgpp::combigrid::FullGridLinearSummationStrategy< V >::eval(), sgpp::combigrid::FullGridPCESummationStrategy< V >::eval(), and sgpp::combigrid::FullGridQuadraticSummationStrategy< V >::eval().

template<typename V >
std::vector<V> sgpp::combigrid::AbstractFullGridSummationStrategy< V >::partialProducts
protected

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