From abeba8535664525fa8ce5764eb2309ffc7bca21b Mon Sep 17 00:00:00 2001 From: Rasmus Munk Larsen Date: Sat, 19 Jul 2025 01:17:12 +0000 Subject: [PATCH] Use proper float literals in SpecialFunctionsImpl.h. --- unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h index 228a7a5d4..387836b72 100644 --- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h +++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h @@ -323,7 +323,7 @@ EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE T generic_fast_erfc::run(const T& x const T num = ppolevl::run(q2, gamma); const T denom = pmul(x, ppolevl::run(q2, delta)); const T r = pdiv(num, denom); - const T maybe_two = pselect(pcmp_lt(x, pset1(0.0)), pset1(2.0), pset1(0.0)); + const T maybe_two = pselect(pcmp_lt(x, pset1(0.0f)), pset1(2.0f), pset1(0.0f)); const T erfc_large = pmadd(z, r, maybe_two); return pselect(x_abs_gt_one_mask, erfc_large, erfc_small); }