mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-18 12:23:13 +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.; }
|
: functor(_functor) { nfev = njev = iter = 0; fnorm=gnorm = 0.; }
|
||||||
|
|
||||||
enum Status {
|
enum Status {
|
||||||
|
NotStarted = -2,
|
||||||
Running = -1,
|
Running = -1,
|
||||||
ImproperInputParameters = 0,
|
ImproperInputParameters = 0,
|
||||||
RelativeReductionTooSmall = 1,
|
RelativeReductionTooSmall = 1,
|
||||||
@ -227,7 +228,7 @@ LevenbergMarquardt<FunctorType,Scalar>::minimizeInit(
|
|||||||
par = 0.;
|
par = 0.;
|
||||||
iter = 1;
|
iter = 1;
|
||||||
|
|
||||||
return Running;
|
return NotStarted;
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename FunctorType, typename Scalar>
|
template<typename FunctorType, typename Scalar>
|
||||||
@ -496,7 +497,7 @@ LevenbergMarquardt<FunctorType,Scalar>::minimizeOptimumStorageInit(
|
|||||||
par = 0.;
|
par = 0.;
|
||||||
iter = 1;
|
iter = 1;
|
||||||
|
|
||||||
return Running;
|
return NotStarted;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user