diff --git a/test/prec_inverse_4x4.cpp b/test/prec_inverse_4x4.cpp index c4c530fd5..0494912a3 100644 --- a/test/prec_inverse_4x4.cpp +++ b/test/prec_inverse_4x4.cpp @@ -76,7 +76,7 @@ template void inverse_general_4x4(int repeat) do { m = MatrixType::Random(); absdet = ei_abs(m.determinant()); - } while(absdet == RealScalar(0)); + } while(absdet < 10 * epsilon()); MatrixType inv = m.inverse(); double error = double( (m*inv-MatrixType::Identity()).norm() * absdet / epsilon() ); error_sum += error; @@ -87,7 +87,7 @@ template void inverse_general_4x4(int repeat) EIGEN_DEBUG_VAR(error_avg); EIGEN_DEBUG_VAR(error_max); VERIFY(error_avg < (NumTraits::IsComplex ? 8.4 : 1.4) ); - VERIFY(error_max < (NumTraits::IsComplex ? 150.0 : 75.) ); + VERIFY(error_max < (NumTraits::IsComplex ? 160.0 : 75.) ); } void test_prec_inverse_4x4()