introduce new state, "Not started"

This commit is contained in:
Thomas Capricelli 2010-01-13 05:17:58 +01:00
parent a87c0a5ed8
commit a33b2dfeb3

View File

@ -44,6 +44,7 @@ public:
: functor(_functor) { nfev = njev = iter = 0; fnorm=gnorm = 0.; }
enum Status {
NotStarted = -2,
Running = -1,
ImproperInputParameters = 0,
RelativeReductionTooSmall = 1,
@ -227,7 +228,7 @@ LevenbergMarquardt<FunctorType,Scalar>::minimizeInit(
par = 0.;
iter = 1;
return Running;
return NotStarted;
}
template<typename FunctorType, typename Scalar>
@ -496,7 +497,7 @@ LevenbergMarquardt<FunctorType,Scalar>::minimizeOptimumStorageInit(
par = 0.;
iter = 1;
return Running;
return NotStarted;
}