Revert "Fix ambiguous static_cast in JacobiSVD blocking threshold computation"

This reverts commit e567151ce3.
This commit is contained in:
Rasmus Munk Larsen
2026-02-25 19:08:21 -08:00
parent ba2fc4e775
commit 6b6d0d8c8e

View File

@@ -774,7 +774,7 @@ JacobiSVD<MatrixType, Options>& JacobiSVD<MatrixType, Options>::compute_impl(con
const Index blockingThreshold = EIGEN_JACOBI_SVD_BLOCKING_THRESHOLD; const Index blockingThreshold = EIGEN_JACOBI_SVD_BLOCKING_THRESHOLD;
#else #else
const Index blockingThreshold = const Index blockingThreshold =
static_cast<Index>(std::sqrt(static_cast<double>(l2CacheSize() / sizeof(float)))); static_cast<Index>(numext::sqrt(static_cast<RealScalar>(l2CacheSize() / sizeof(float))));
#endif #endif
if (n >= blockingThreshold) { if (n >= blockingThreshold) {