11 #ifndef __MEAL_EvaluationPolicy_H
12 #define __MEAL_EvaluationPolicy_H
14 #include "MEAL/FunctionPolicy.h"
20 template< class Result>
21 class EvaluationPolicy : public FunctionPolicy {
29 virtual Result evaluate (std::vector<Result>* grad=0) const = 0;
35 static EvaluationPolicy<typename T::Result>* default_evaluation_policy (T*);
39 #include "MEAL/Cached.h"
40 #include "MEAL/NotCached.h"
44 MEAL::default_evaluation_policy (T* thiz)
46 if (Function::cache_results)
Managers of Function value and gradient. Definition: EvaluationPolicy.h:26
Namespace in which all modeling and calibration related code is declared. Definition: ExampleComplex2.h:16
An evaluation policy that does not cache calculations. Definition: NotCached.h:27
This evaluation policy uses previously cached results when possible. Definition: Cached.h:29
Pure virtual base class of all functions. Definition: Function.h:49
EvaluationPolicy(Function *context) Default destructor. Definition: EvaluationPolicy.h:36
virtual Result evaluate(std::vector< Result > *grad=0) const =0 Return the result (and its gradient, if requested)
Policies that customize Function behaviours. Definition: FunctionPolicy.h:26
Generated using doxygen 1.8.17
|