aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/inverse.cpp
diff options
context:
space:
mode:
authorGravatar Hauke Heibel <hauke.heibel@gmail.com>2010-06-10 10:06:14 +0200
committerGravatar Hauke Heibel <hauke.heibel@gmail.com>2010-06-10 10:06:14 +0200
commit941ca80b80a6db11a5a78a8d323cc40294208891 (patch)
tree7d8b7bb1d8f95e0b6d3a4d8875c3ebc1c4b4d2b2 /test/inverse.cpp
parentf8683c409f7524db471e76b1540344ecdc7b0be6 (diff)
Adapted the determinant test for rank 1 matrices with zero determinant.
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 4d9297eb4..b75232727 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_APPROX(det, m3.determinant());
+ VERIFY_IS_MUCH_SMALLER_THAN(m3.determinant(), RealScalar(1));
m3.computeInverseWithCheck(m4, invertible);
VERIFY( rows==1 ? invertible : !invertible );
#endif