diff options
Diffstat (limited to 'test/cholesky.cpp')
-rw-r--r-- | test/cholesky.cpp | 4 |
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 |