mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-01-18 14:34:17 +08:00
introduce new state, "Not started"
This commit is contained in:
parent
a87c0a5ed8
commit
a33b2dfeb3
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user