diff options
Diffstat (limited to 'test/inverse.cpp')
-rw-r--r-- | test/inverse.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/inverse.cpp b/test/inverse.cpp index 5ac39e35a..352887d45 100644 --- a/test/inverse.cpp +++ b/test/inverse.cpp @@ -76,10 +76,7 @@ template<typename MatrixType> void inverse(const MatrixType& m) VectorType v3 = VectorType::Random(rows); MatrixType m3 = v3*v3.transpose(), m4(rows,cols); invertible = m3.computeInverseWithCheck( &m4 ); - if( 1 == rows ){ - VERIFY( invertible ); } - else{ - VERIFY( !invertible ); } + VERIFY( rows==1 ? invertible : !invertible ); } void test_inverse() |