aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cholesky.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2010-06-12 10:12:22 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2010-06-12 10:12:22 +0200
commit03331552a9daf670d510f26089c9584ab0a5e655 (patch)
treee79d20fd30f793ff5b4c771389306fe5d693bdeb /test/cholesky.cpp
parenta25749ade9ee4c97fab5a801314a733a8a6a6e30 (diff)
add a info() function in LLT to report on succes/faillure
Diffstat (limited to 'test/cholesky.cpp')
-rw-r--r--test/cholesky.cpp4
1 files changed, 4 insertions, 0 deletions
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<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