11#ifndef __MEAL_Complex_H
12#define __MEAL_Complex_H
14#include "MEAL/Evaluable.h"
20 typedef std::complex< Estimate<T> > type;
24void 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) );
Pure virtual base class of all complex-valued functions.
Definition Complex.h:39
static const char * Name
The name of the class.
Definition Complex.h:42
virtual Complex * clone() const
Clone method.
Definition Complex.C:13
Evaluable()
Definition Evaluable.h:48
Namespace in which all modeling and calibration related code is declared.
Definition ExampleComplex2.h:16
Works for most scalar types.
Definition Evaluable.h:22