diff options
author | Gael Guennebaud <g.gael@free.fr> | 2014-09-14 20:12:07 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2014-09-14 20:12:07 +0200 |
commit | 0403d49006818079c79c038a6b55c48bc3839c22 (patch) | |
tree | 3ab647f2a0bd8089a24cb441a7aedb2c6452a646 /test/inverse.cpp | |
parent | c83e01f2d6113fb2f7dcc591b3364eb87b7a74aa (diff) |
Fix inverse unit test making sure we try to invert an invertible matrix
Diffstat (limited to 'test/inverse.cpp')
-rw-r--r-- | test/inverse.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/inverse.cpp b/test/inverse.cpp index 1195bcc76..1e7b20958 100644 --- a/test/inverse.cpp +++ b/test/inverse.cpp @@ -73,6 +73,7 @@ template<typename MatrixType> void inverse(const MatrixType& m) { Matrix<Scalar, MatrixType::RowsAtCompileTime+1, MatrixType::RowsAtCompileTime+1, MatrixType::Options> m3; m3.setRandom(); + m3.topLeftCorner(rows,rows) = m1; m2 = m3.template topLeftCorner<MatrixType::RowsAtCompileTime,MatrixType::ColsAtCompileTime>().inverse(); VERIFY_IS_APPROX( (m3.template topLeftCorner<MatrixType::RowsAtCompileTime,MatrixType::ColsAtCompileTime>()), m2.inverse() ); } |