diff --git a/Eigen/src/Cholesky/LDLT.h b/Eigen/src/Cholesky/LDLT.h index 4729c3621..4177000fd 100644 --- a/Eigen/src/Cholesky/LDLT.h +++ b/Eigen/src/Cholesky/LDLT.h @@ -97,7 +97,7 @@ void LDLT::compute(const MatrixType& a) const int size = a.rows(); m_matrix.resize(size, size); m_isPositiveDefinite = true; - const RealScalar eps = ei_sqrt(precision()); + const RealScalar eps = precision(); if (size<=1) { diff --git a/Eigen/src/Cholesky/LLT.h b/Eigen/src/Cholesky/LLT.h index c4e7fdffd..e02b82551 100644 --- a/Eigen/src/Cholesky/LLT.h +++ b/Eigen/src/Cholesky/LLT.h @@ -97,7 +97,7 @@ void LLT::compute(const MatrixType& a) assert(a.rows()==a.cols()); const int size = a.rows(); m_matrix.resize(size, size); - const RealScalar eps = ei_sqrt(precision()); + const RealScalar eps = precision(); RealScalar x; x = ei_real(a.coeff(0,0));