Fix more hard-coded magic bounds.

(cherry picked from commit ae5280aa8dcc12b2a483887414e7998de0184f2f)
This commit is contained in:
Antonio Sánchez 2024-04-29 21:21:11 +00:00 committed by C. Antonio Sanchez
parent d60c3a3341
commit f23b8c0d78
2 changed files with 2 additions and 2 deletions

View File

@ -1034,7 +1034,7 @@ void testNistLanczos1(void)
// check norm^2
// std::cout.precision(30);
// std::cout << lm.fvec.squaredNorm() << "\n";
VERIFY(lm.fvec.squaredNorm() <= 1.4307867721E-25);
VERIFY(lm.fvec.squaredNorm() <= 1.44E-25);
// check x
VERIFY_IS_APPROX(x[0], 9.5100000027E-02);
VERIFY_IS_APPROX(x[1], 1.0000000001E+00);

View File

@ -646,7 +646,7 @@ void testNistLanczos1(void)
// VERIFY_IS_EQUAL(lm.nfev(), 79);
// VERIFY_IS_EQUAL(lm.njev(), 72);
// check norm^2
VERIFY(lm.fvec().squaredNorm() <= 1.4307867721E-25);
VERIFY(lm.fvec().squaredNorm() <= 1.44E-25);
// check x
VERIFY_IS_APPROX(x[0], 9.5100000027E-02);
VERIFY_IS_APPROX(x[1], 1.0000000001E+00);