diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2010-02-23 09:04:59 -0500 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2010-02-23 09:04:59 -0500 |
commit | 7dc75380c101b9b4f3882f78fe6a5e9ae8963cac (patch) | |
tree | ee0856550592df2b74bd2d4f912780e2fdbb3cc4 /test/inverse.cpp | |
parent | 4a0d41c5fb9dde0a0a15051ca04b228cea8a16ea (diff) |
* FullPivLU: replace "remaining==0" termination condition (from Golub) by a fuzzy compare
(fixes lu test failures when testing solve())
* LU test: set appropriate threshold and limit the number of times that a specially tricky test
is run. (fixes lu test failures when testing rank()).
* Tests: rename createRandomMatrixOfRank to createRandomProjectionOfRank
Diffstat (limited to 'test/inverse.cpp')
-rw-r--r-- | test/inverse.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/inverse.cpp b/test/inverse.cpp index 713caf4a6..3f6138e0c 100644 --- a/test/inverse.cpp +++ b/test/inverse.cpp @@ -42,7 +42,7 @@ template<typename MatrixType> void inverse(const MatrixType& m) m2(rows, cols), mzero = MatrixType::Zero(rows, cols), identity = MatrixType::Identity(rows, rows); - createRandomMatrixOfRank(rows,rows,rows,m1); + createRandomProjectionOfRank(rows,rows,rows,m1); m2 = m1.inverse(); VERIFY_IS_APPROX(m1, m2.inverse() ); |