mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-11 11:19:02 +08:00
Made log1p_impl usable inside a GPU kernel
This commit is contained in:
parent
7d495d890a
commit
b055590e91
@ -462,7 +462,7 @@ struct arg_retval
|
||||
template<typename Scalar, bool isComplex = NumTraits<Scalar>::IsComplex >
|
||||
struct log1p_impl
|
||||
{
|
||||
static inline Scalar run(const Scalar& x)
|
||||
static EIGEN_DEVICE_FUNC inline Scalar run(const Scalar& x)
|
||||
{
|
||||
EIGEN_STATIC_ASSERT_NON_INTEGER(Scalar)
|
||||
typedef typename NumTraits<Scalar>::Real RealScalar;
|
||||
@ -472,7 +472,7 @@ struct log1p_impl
|
||||
}
|
||||
};
|
||||
|
||||
#if EIGEN_HAS_CXX11_MATH
|
||||
#if EIGEN_HAS_CXX11_MATH && !defined(__CUDACC__)
|
||||
template<typename Scalar>
|
||||
struct log1p_impl<Scalar, false> {
|
||||
static inline Scalar run(const Scalar& x)
|
||||
|
Loading…
x
Reference in New Issue
Block a user