return immediately if maxIterations is zero
parent
66caac3c1c
commit
5f7b2ef2ee
|
|
@ -229,6 +229,8 @@ namespace gtsam {
|
|||
double relativeThreshold, double absoluteThreshold,
|
||||
verbosityLevel verbosity, int maxIterations, double lambdaFactor, LambdaMode lambdaMode) const {
|
||||
|
||||
if (maxIterations <= 0) return *this;
|
||||
|
||||
// check if we're already close enough
|
||||
if (error_ < absoluteThreshold) {
|
||||
if (verbosity >= ERROR) cout << "Exiting, as error = " << error_
|
||||
|
|
|
|||
Loading…
Reference in New Issue