mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
bug fix in inverse for 1x1 matrix,
some compilation fixes in sparse_solvers
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user