mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-21 00:59:36 +08:00
Fix more hard-coded magic bounds.
This commit is contained in:
parent
a5e147305b
commit
ae5280aa8d
@ -1008,7 +1008,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);
|
||||||
|
@ -670,7 +670,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