From f48af91c7e9f75a9fb70367a56211387e9cdaeec Mon Sep 17 00:00:00 2001 From: Hauke Heibel Date: Fri, 11 Jun 2010 08:08:12 +0200 Subject: For 1x1 matrices we really need to check the abs diff of the determinants. --- test/inverse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/inverse.cpp') diff --git a/test/inverse.cpp b/test/inverse.cpp index b75232727..108ce7bcb 100644 --- a/test/inverse.cpp +++ b/test/inverse.cpp @@ -78,7 +78,7 @@ template void inverse(const MatrixType& m) MatrixType m3 = v3*v3.transpose(), m4(rows,cols); m3.computeInverseAndDetWithCheck(m4, det, invertible); VERIFY( rows==1 ? invertible : !invertible ); - VERIFY_IS_MUCH_SMALLER_THAN(m3.determinant(), RealScalar(1)); + VERIFY_IS_MUCH_SMALLER_THAN(ei_abs(det-m3.determinant()), RealScalar(1)); m3.computeInverseWithCheck(m4, invertible); VERIFY( rows==1 ? invertible : !invertible ); #endif -- cgit v1.2.3