From dacb23277e75bc1c3465f41b6f3ba42359e41038 Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Thu, 28 Apr 2016 18:54:54 -0700 Subject: [PATCH] Fixed the igamma and igammac implementations to make them callable from a gpu kernel. --- Eigen/src/Core/SpecialFunctions.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Eigen/src/Core/SpecialFunctions.h b/Eigen/src/Core/SpecialFunctions.h index 1ec0fb325..3513a5c63 100644 --- a/Eigen/src/Core/SpecialFunctions.h +++ b/Eigen/src/Core/SpecialFunctions.h @@ -549,7 +549,7 @@ struct igammac_impl { * x >= 1 * x >= a */ - static Scalar Impl(Scalar a, Scalar x) { + EIGEN_DEVICE_FUNC static Scalar Impl(Scalar a, Scalar x) { const Scalar zero = 0; const Scalar one = 1; const Scalar two = 2; @@ -736,7 +736,7 @@ struct igamma_impl { * a > 0 * !(x > 1 && x > a) */ - static Scalar Impl(Scalar a, Scalar x) { + EIGEN_DEVICE_FUNC static Scalar Impl(Scalar a, Scalar x) { const Scalar zero = 0; const Scalar one = 1; const Scalar machep = igamma_helper::machep();