11 #ifndef __MEAL_Complex_H
12 #define __MEAL_Complex_H
14 #include "MEAL/Evaluable.h"
20 typedef std::complex< Estimate<T> > type;
24 void add_variance (std::complex< Estimate<T> >& result,
25 double var, const std::complex<T>& grad)
27 double re = grad.real();
28 double im = grad.imag();
30 std::complex< Estimate<double> > add ( Estimate<double>(0.0,re*re*var),
31 Estimate<double>(0.0,im*im*var) );
Template base class of functions with an evaluate method. Definition: Evaluable.h:35
Namespace in which all modeling and calibration related code is declared. Definition: ExampleComplex2.h:16
Pure virtual base class of all complex-valued functions. Definition: Complex.h:38
static const char * Name The name of the class. Definition: Complex.h:42
virtual Complex * clone() const Clone method. Definition: Complex.C:13
Works for most scalar types. Definition: Evaluable.h:20
Generated using doxygen 1.8.17
|