aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/LU
diff options
context:
space:
mode:
authorGravatar Rasmus Munk Larsen <rmlarsen@google.com>2018-08-09 14:46:17 -0700
committerGravatar Rasmus Munk Larsen <rmlarsen@google.com>2018-08-09 14:46:17 -0700
commitbfc5091dd56a18e3f6ed1dd30509f45d0fba0828 (patch)
treeb47a6ae7ef162da9927ecd60843761ced10201c0 /Eigen/src/LU
parent8603d80029581272a04f78959cb1636395fa47bc (diff)
Cast to diagonalSize to RealScalar instead Scalar.
Diffstat (limited to 'Eigen/src/LU')
-rw-r--r--Eigen/src/LU/FullPivLU.h2
1 files changed, 1 insertions, 1 deletions
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<typename _MatrixType> 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<Scalar>::epsilon() * Scalar(m_lu.diagonalSize());
+ : NumTraits<Scalar>::epsilon() * RealScalar(m_lu.diagonalSize());
}
/** \returns the rank of the matrix of which *this is the LU decomposition.