mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Fix more hard-coded magic bounds.
(cherry picked from commit ae5280aa8d)
This commit is contained in:
committed by
Antonio Sanchez
parent
03727bdf55
commit
0071c2e8a8
@@ -1017,9 +1017,9 @@ void testNistLanczos1(void)
|
||||
VERIFY_IS_EQUAL(info, 2);
|
||||
LM_CHECK_N_ITERS(lm, 79, 72);
|
||||
// check norm^2
|
||||
std::cout.precision(30);
|
||||
std::cout << lm.fvec.squaredNorm() << "\n";
|
||||
VERIFY(lm.fvec.squaredNorm() <= 1.4307867721E-25);
|
||||
// std::cout.precision(30);
|
||||
// std::cout << lm.fvec.squaredNorm() << "\n";
|
||||
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);
|
||||
|
||||
@@ -634,7 +634,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);
|
||||
|
||||
Reference in New Issue
Block a user