11 #ifndef __MEAL_Value_H
12 #define __MEAL_Value_H
14 #include "MEAL/NoParameters.h"
15 #include "MEAL/NotCached.h"
21 class Value : public T {
25 typedef typename T::Result Result;
31 Value ( const Result& _value) { init(); value = _value; }
40 this->set_evaluation_changed();
48 { return "Value<" + std::string(T::Name)+ ">"; }
53 void calculate (Result& result, std::vector<Result>* grad=0)
56 if (grad) grad->resize(0);
void set_value(const Result &_value) Set the value. Definition: Value.h:44
std::string get_name() const Return the name of the class. Definition: Value.h:57
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
const Result & get_value() const Get the value. Definition: Value.h:54
Represents a model with no parameters. Definition: NoParameters.h:24
Value() Default constructor. Definition: Value.h:38
void calculate(Result &result, std::vector< Result > *grad=0) Return the value (and gradient, if requested) of the function. Definition: Value.h:63
Result value The value. Definition: Value.h:76
double Result The return type of the evaluate method. Definition: Evaluable.h:40
Generated using doxygen 1.8.17
|