[eigen] Parameters in Levenberg Marquard algorithm of wrong type? |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: <eigen@xxxxxxxxxxxxxxxxxxx>
- Subject: [eigen] Parameters in Levenberg Marquard algorithm of wrong type?
- From: "Claas H. Köhler" <claas.koehler@xxxxxx>
- Date: Thu, 15 Mar 2012 18:34:27 +0100
- Organization: Deutsches Zentrum für Luft-und Raumfahrt
Hi!
Has anybody ever tried to use the LevenbergMarquardt class of the
unsupported NonLinearOptimization module with complex values? I am
asking, because all parameters specified in the Parameters struct are of
type Scalar, which would result in std::complex<double> values. However,
if I am not mistaken, these values should be real quantities, even if
the underlying problem is complex.
Furthermore comparisons of the form
if (parameters.ftol < 0.) {...}
are used, while operator< should not be defined for complex values at all.
Would it not be preferable to use NumTraits<Scalar>::Real instead for
the parameters?
Regards
Claas