mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-21 07:19:46 +08:00
Fix for HIP breakage - 200115. Adding a missing EIGEN_DEVICE_FUNC attr
This commit is contained in:
parent
f6c6de5d63
commit
6d284bb1b7
@ -714,6 +714,7 @@ struct cephes_helper<double> {
|
||||
enum IgammaComputationMode { VALUE, DERIVATIVE, SAMPLE_DERIVATIVE };
|
||||
|
||||
template <typename Scalar>
|
||||
EIGEN_DEVICE_FUNC
|
||||
static EIGEN_STRONG_INLINE Scalar main_igamma_term(Scalar a, Scalar x) {
|
||||
/* Compute x**a * exp(-x) / gamma(a) */
|
||||
Scalar logax = a * numext::log(x) - x - lgamma_impl<Scalar>::run(a);
|
||||
|
Loading…
Reference in New Issue
Block a user