Add missing 'f' in float literal in SpecialFunctionsImpl.h that triggers implicit conversion warning.

This commit is contained in:
Rasmus Munk Larsen 2023-04-18 17:33:29 +00:00
parent 3f3ce214e6
commit 1e223a956c

View File

@ -324,7 +324,7 @@ EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE T generic_fast_erf_float(const T& a_x) {
const T beta_6 = pset1<T>(0.014070470171167667f);
const T beta_8 = pset1<T>(0.0010179625278914885f);
const T beta_10 = pset1<T>(0.000023547966471313185f);
const T beta_12 = pset1<T>(-1.1791602954361697e-7);
const T beta_12 = pset1<T>(-1.1791602954361697e-7f);
// Since the polynomials are odd/even, we need x^2.
const T x2 = pmul(x, x);