diff --git a/src/dsp.cpp b/src/dsp.cpp index 7f56735..9ae0a19 100644 --- a/src/dsp.cpp +++ b/src/dsp.cpp @@ -192,13 +192,13 @@ void sigmoid_(Eigen::MatrixXf &x, const long i_start, const long i_end, inline float fast_tanh_(const float x) { - const float ax = fabs(x); + const float ax = fabsf(x); const float x2 = x * x; return(x * (2.45550750702956f + 2.45550750702956f * ax + (0.893229853513558f + 0.821226666969744f * ax) * x2) / (2.44506634652299f + (2.44506634652299f + x2) * - fabs(x + 0.814642734961073f * x * ax))); + fabsf(x + 0.814642734961073f * x * ax))); } void tanh_(Eigen::MatrixXf& x)