Fixed the igamma and igammac implementations to make them callable from a gpu kernel.

This commit is contained in:
Benoit Steiner 2016-04-28 18:54:54 -07:00
parent a5d4545083
commit dacb23277e

View File

@ -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();