aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cholesky.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2014-07-08 10:04:27 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2014-07-08 10:04:27 +0200
commit0dfb73d46ada6a9749a24a946186c8a8c2472dc5 (patch)
treeb9c53d969232bfbcc70a87438fbffd07ab4953cf /test/cholesky.cpp
parent7fa83e7374b38e9900e77cf2b29b54919f65d1ef (diff)
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
Diffstat (limited to 'test/cholesky.cpp')
-rw-r--r--test/cholesky.cpp2
1 files changed, 1 insertions, 1 deletions
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<typename MatrixType> 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<RealScalar>::max_exponent10/8);