diff options
author | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2016-04-28 18:54:54 -0700 |
---|---|---|
committer | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2016-04-28 18:54:54 -0700 |
commit | dacb23277e75bc1c3465f41b6f3ba42359e41038 (patch) | |
tree | d37e822f2d47086a876c6c8a8f5f842908b858ea /Eigen | |
parent | a5d454508393541f370a3f9a0fd9a65888cfb7c8 (diff) |
Fixed the igamma and igammac implementations to make them callable from a gpu kernel.
Diffstat (limited to 'Eigen')
-rw-r--r-- | Eigen/src/Core/SpecialFunctions.h | 4 |
1 files 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<Scalar>::machep(); |