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);