From bfc5091dd56a18e3f6ed1dd30509f45d0fba0828 Mon Sep 17 00:00:00 2001 From: Rasmus Munk Larsen Date: Thu, 9 Aug 2018 14:46:17 -0700 Subject: [PATCH] Cast to diagonalSize to RealScalar instead Scalar. --- Eigen/src/LU/FullPivLU.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/LU/FullPivLU.h b/Eigen/src/LU/FullPivLU.h index 8541dfa02..344ec8926 100644 --- a/Eigen/src/LU/FullPivLU.h +++ b/Eigen/src/LU/FullPivLU.h @@ -320,7 +320,7 @@ template class FullPivLU return m_usePrescribedThreshold ? m_prescribedThreshold // this formula comes from experimenting (see "LU precision tuning" thread on the list) // and turns out to be identical to Higham's formula used already in LDLt. - : NumTraits::epsilon() * Scalar(m_lu.diagonalSize()); + : NumTraits::epsilon() * RealScalar(m_lu.diagonalSize()); } /** \returns the rank of the matrix of which *this is the LU decomposition.