Merge pull request #4617 from GitPaean/updating_interval_avoid_stallment

updating the interval when doing bisectBracket()
This commit is contained in:
Atgeirr Flø Rasmussen 2023-05-03 13:23:30 +02:00 committed by GitHub
commit 61e5ce3d73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -695,6 +695,7 @@ bisectBracket(const std::function<double(const double)>& eq,
eq_high = eq(high); eq_high = eq(high);
abs_high = std::fabs(eq_high); abs_high = std::fabs(eq_high);
} }
interval = high - low;
++bracket_attempts; ++bracket_attempts;
} }