From 03331552a9daf670d510f26089c9584ab0a5e655 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Sat, 12 Jun 2010 10:12:22 +0200 Subject: add a info() function in LLT to report on succes/faillure --- test/cholesky.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/cholesky.cpp') diff --git a/test/cholesky.cpp b/test/cholesky.cpp index 666cee20f..54ff94f32 100644 --- a/test/cholesky.cpp +++ b/test/cholesky.cpp @@ -119,6 +119,10 @@ template 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 -- cgit v1.2.3