From 5f3606bce9c1283e9f2e8b489c4baccfa2916d42 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Mon, 27 Jul 2009 18:09:56 +0200 Subject: bug fix in inverse for 1x1 matrix, some compilation fixes in sparse_solvers --- test/inverse.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'test/inverse.cpp') 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 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() -- cgit v1.2.3