diff options
author | Christoph Hertzberg <chtz@informatik.uni-bremen.de> | 2019-05-23 15:31:12 +0200 |
---|---|---|
committer | Christoph Hertzberg <chtz@informatik.uni-bremen.de> | 2019-05-23 15:31:12 +0200 |
commit | ac21a08c130b3096669548d18abb13cdd655380f (patch) | |
tree | 693e6644c217eb7744e03e37c4cc2c83d6efe688 /Eigen | |
parent | 3eb5ad0ed0519c379314e07c3fec770f07804ef8 (diff) |
Cast Index to RealScalar
This fixes compilation issues with RealScalar types that are not implicitly castable from Index (e.g. ceres Jet types).
Reported by Peter Anderson-Sprecher via eMail
Diffstat (limited to 'Eigen')
-rw-r--r-- | Eigen/src/SVD/SVDBase.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/SVD/SVDBase.h b/Eigen/src/SVD/SVDBase.h index 68df48921..34d5c9dd3 100644 --- a/Eigen/src/SVD/SVDBase.h +++ b/Eigen/src/SVD/SVDBase.h @@ -198,7 +198,7 @@ public: // this temporary is needed to workaround a MSVC issue Index diagSize = (std::max<Index>)(1,m_diagSize); return m_usePrescribedThreshold ? m_prescribedThreshold - : diagSize*NumTraits<Scalar>::epsilon(); + : RealScalar(diagSize)*NumTraits<Scalar>::epsilon(); } /** \returns true if \a U (full or thin) is asked for in this SVD decomposition */ |