aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/qr.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2009-01-20 10:38:56 +0000
committerGravatar Gael Guennebaud <g.gael@free.fr>2009-01-20 10:38:56 +0000
commit3134d5290bb39446e5d5966d59aa25dad4e29ca3 (patch)
tree0b90bf5ca3ab7300226cb1a811ed6c99ed4fe186 /test/qr.cpp
parent3e5b3a33fadc6611f2c577fab69c7520afbe5a1b (diff)
forgot to include the update of the qr test
Diffstat (limited to 'test/qr.cpp')
-rw-r--r--test/qr.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/qr.cpp b/test/qr.cpp
index be9e97a04..9ce808429 100644
--- a/test/qr.cpp
+++ b/test/qr.cpp
@@ -66,4 +66,13 @@ void test_qr()
CALL_SUBTEST( qr(MatrixXcd(5,5)) );
CALL_SUBTEST( qr(MatrixXcd(7,3)) );
}
+
+ // small isFullRank test
+ {
+ Matrix3d mat;
+ mat << 1, 45, 1, 2, 2, 2, 1, 2, 3;
+ VERIFY(mat.qr().isFullRank());
+ mat << 1, 1, 1, 2, 2, 2, 1, 2, 3;
+ VERIFY(!mat.qr().isFullRank());
+ }
}