Re: [eigen] Parameters in Levenberg Marquard algorithm of wrong type? |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
Mmh, indeed, i've never considered complex with those. You probably
right, I'll check about patching this
Thomas
On 15/03/2012 18:34, "Claas H. Köhler" wrote:
> 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
>
>
--
Thomas Capricelli <orzel@xxxxxxxxxxxxxxx>
http://www.freehackers.org/thomas/