fix lmdif1 with Scalar!=double

This commit is contained in:
Gael Guennebaud 2012-05-01 14:46:02 +02:00
parent 65fb0d43ff
commit 8f47246475

View File

@ -641,7 +641,7 @@ LevenbergMarquardt<FunctorType,Scalar>::lmdif1(
NumericalDiff<FunctorType> numDiff(functor);
// embedded LevenbergMarquardt
LevenbergMarquardt<NumericalDiff<FunctorType> > lm(numDiff);
LevenbergMarquardt<NumericalDiff<FunctorType>, Scalar > lm(numDiff);
lm.parameters.ftol = tol;
lm.parameters.xtol = tol;
lm.parameters.maxfev = 200*(n+1);