add a info() function in LLT to report on succes/faillure

This commit is contained in:
Gael Guennebaud
2010-06-12 10:12:22 +02:00
parent a25749ade9
commit 03331552a9
4 changed files with 30 additions and 10 deletions

View File

@@ -119,6 +119,10 @@ template<typename MatrixType> void cholesky(const MatrixType& m)
VERIFY_IS_APPROX(symm * vecX, vecB);
matX = cholup.solve(matB);
VERIFY_IS_APPROX(symm * matX, matB);
MatrixType neg = -symmLo;
chollo.compute(neg);
VERIFY(chollo.info()==NumericalIssue);
}
// LDLT