From 17de59278b8ad3affad9bc3778cb0318cb5451e0 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Thu, 9 Dec 2010 19:47:02 +0100 Subject: [PATCH] simplification --- Eigen/src/Cholesky/LLT.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Cholesky/LLT.h b/Eigen/src/Cholesky/LLT.h index 80a248546..ceb532055 100644 --- a/Eigen/src/Cholesky/LLT.h +++ b/Eigen/src/Cholesky/LLT.h @@ -200,7 +200,7 @@ template<> struct llt_inplace Block A20(mat,k+1,0,rs,k); RealScalar x = real(mat.coeff(k,k)); - if (k>0) x -= mat.row(k).head(k).squaredNorm(); + if (k>0) x -= A10.squaredNorm(); if (x<=RealScalar(0)) return false; mat.coeffRef(k,k) = x = sqrt(x);