From 0dfb73d46ada6a9749a24a946186c8a8c2472dc5 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Tue, 8 Jul 2014 10:04:27 +0200 Subject: Fix LDLT with semi-definite complex matrices: owing to round-off errors, the diagonal was not real. Also exploit the fact that the diagonal is real in the rest of LDLT --- test/cholesky.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/cholesky.cpp') diff --git a/test/cholesky.cpp b/test/cholesky.cpp index 9aa7da7bb..1d147bd7a 100644 --- a/test/cholesky.cpp +++ b/test/cholesky.cpp @@ -209,7 +209,7 @@ template void cholesky(const MatrixType& m) VERIFY_IS_APPROX(A * vecX, vecB); } - // check matrices with wide spectrum + // check matrices with a wide spectrum if(rows>=3) { RealScalar s = (std::min)(16,std::numeric_limits::max_exponent10/8); -- cgit v1.2.3