aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/inverse.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2014-09-14 20:12:07 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2014-09-14 20:12:07 +0200
commit0403d49006818079c79c038a6b55c48bc3839c22 (patch)
tree3ab647f2a0bd8089a24cb441a7aedb2c6452a646 /test/inverse.cpp
parentc83e01f2d6113fb2f7dcc591b3364eb87b7a74aa (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.cpp1
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() );
}