Tiny bugfix in SpecialFunctions: some compilers don't like doubles

implicitly downcast to floats in an array constructor.
This commit is contained in:
Eugene Brevdo 2016-02-17 14:41:59 -08:00
parent 8cc9232b9a
commit 06a2bc7c9c

View File

@ -182,10 +182,10 @@ struct digamma_impl_maybe_poly<float> {
EIGEN_DEVICE_FUNC EIGEN_DEVICE_FUNC
static EIGEN_STRONG_INLINE float run(const float s) { static EIGEN_STRONG_INLINE float run(const float s) {
const float A[] = { const float A[] = {
-4.16666666666666666667E-3, -4.16666666666666666667E-3f,
3.96825396825396825397E-3, 3.96825396825396825397E-3f,
-8.33333333333333333333E-3, -8.33333333333333333333E-3f,
8.33333333333333333333E-2 8.33333333333333333333E-2f
}; };
float z; float z;