mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-11 19:29:02 +08:00
Fixed the igamma and igammac implementations to make them callable from a gpu kernel.
This commit is contained in:
parent
a5d4545083
commit
dacb23277e
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user