diff options
-rw-r--r-- | test/qr.cpp | 9 |
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()); + } } |