mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-11 19:29:02 +08:00
Relax a bit the precision in mpreal unit test.
This commit is contained in:
parent
691e607d85
commit
29d395f769
@ -45,8 +45,7 @@ void test_mpreal_support()
|
||||
// symmetric eigenvalues
|
||||
SelfAdjointEigenSolver<MatrixXmp> eig(S);
|
||||
VERIFY_IS_EQUAL(eig.info(), Success);
|
||||
VERIFY_IS_APPROX((S.selfadjointView<Lower>() * eig.eigenvectors()),
|
||||
eig.eigenvectors() * eig.eigenvalues().asDiagonal());
|
||||
VERIFY( (S.selfadjointView<Lower>() * eig.eigenvectors()).isApprox(eig.eigenvectors() * eig.eigenvalues().asDiagonal(), NumTraits<mpreal>::dummy_precision()*1e3) );
|
||||
}
|
||||
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user