mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-14 17:11:50 +08:00
Fix more hard-coded magic bounds.
(cherry picked from commit ae5280aa8dcc12b2a483887414e7998de0184f2f)
This commit is contained in:
parent
d60c3a3341
commit
f23b8c0d78
@ -1034,7 +1034,7 @@ void testNistLanczos1(void)
|
|||||||
// check norm^2
|
// check norm^2
|
||||||
// std::cout.precision(30);
|
// std::cout.precision(30);
|
||||||
// std::cout << lm.fvec.squaredNorm() << "\n";
|
// std::cout << lm.fvec.squaredNorm() << "\n";
|
||||||
VERIFY(lm.fvec.squaredNorm() <= 1.4307867721E-25);
|
VERIFY(lm.fvec.squaredNorm() <= 1.44E-25);
|
||||||
// check x
|
// check x
|
||||||
VERIFY_IS_APPROX(x[0], 9.5100000027E-02);
|
VERIFY_IS_APPROX(x[0], 9.5100000027E-02);
|
||||||
VERIFY_IS_APPROX(x[1], 1.0000000001E+00);
|
VERIFY_IS_APPROX(x[1], 1.0000000001E+00);
|
||||||
|
@ -646,7 +646,7 @@ void testNistLanczos1(void)
|
|||||||
// VERIFY_IS_EQUAL(lm.nfev(), 79);
|
// VERIFY_IS_EQUAL(lm.nfev(), 79);
|
||||||
// VERIFY_IS_EQUAL(lm.njev(), 72);
|
// VERIFY_IS_EQUAL(lm.njev(), 72);
|
||||||
// check norm^2
|
// check norm^2
|
||||||
VERIFY(lm.fvec().squaredNorm() <= 1.4307867721E-25);
|
VERIFY(lm.fvec().squaredNorm() <= 1.44E-25);
|
||||||
// check x
|
// check x
|
||||||
VERIFY_IS_APPROX(x[0], 9.5100000027E-02);
|
VERIFY_IS_APPROX(x[0], 9.5100000027E-02);
|
||||||
VERIFY_IS_APPROX(x[1], 1.0000000001E+00);
|
VERIFY_IS_APPROX(x[1], 1.0000000001E+00);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user