aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/inverse.cpp
diff options
context:
space:
mode:
authorGravatar Hauke Heibel <hauke.heibel@gmail.com>2010-06-11 08:08:12 +0200
committerGravatar Hauke Heibel <hauke.heibel@gmail.com>2010-06-11 08:08:12 +0200
commitf48af91c7e9f75a9fb70367a56211387e9cdaeec (patch)
tree45a245ba2c51f2261d9e2f4c44c78132a79f964c /test/inverse.cpp
parentcedea2aba459a131459af9fd69d4c42eef7394da (diff)
For 1x1 matrices we really need to check the abs diff of the determinants.
Diffstat (limited to 'test/inverse.cpp')
-rw-r--r--test/inverse.cpp2
1 files changed, 1 insertions, 1 deletions
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<typename MatrixType> 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