bug fix in inverse for 1x1 matrix,

some compilation fixes in sparse_solvers
This commit is contained in:
Gael Guennebaud
2009-07-27 18:09:56 +02:00
parent 94cc30180e
commit 5f3606bce9
4 changed files with 14 additions and 17 deletions

View File

@@ -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()