immediately returns when the maximum iteration number is 0
parent
8768fb0d29
commit
cc3db4f918
|
|
@ -241,7 +241,11 @@ namespace gtsam {
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// for the case that maxIterations_ = 0
|
||||||
iterations_ = 1;
|
iterations_ = 1;
|
||||||
|
if (iterations_ >= parameters_->maxIterations_)
|
||||||
|
return *this;
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
double previous_error = error_;
|
double previous_error = error_;
|
||||||
// do one iteration of LM
|
// do one iteration of LM
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue