14#include "MEAL/NoParameters.h"
15#include "MEAL/NotCached.h"
25 typedef typename T::Result Result;
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);
Represents a model with no parameters.
Definition NoParameters.h:19
An evaluation policy that does not cache calculations.
Definition NotCached.h:23
Result value
The value.
Definition Value.h:66
void calculate(Result &result, std::vector< Result > *grad=0)
Return the value (and gradient, if requested) of the function.
Definition Value.h:53
const Result & get_value() const
Get the value.
Definition Value.h:44
std::string get_name() const
Return the name of the class.
Definition Value.h:47
Value()
Default constructor.
Definition Value.h:28
Value(const Result &_value)
Construct with initial value.
Definition Value.h:31
void set_value(const Result &_value)
Set the value.
Definition Value.h:34
Namespace in which all modeling and calibration related code is declared.
Definition ExampleComplex2.h:16