Fixed compilation with cuda-clang

This commit is contained in:
Ilya Biryukov 2017-03-06 12:01:12 +01:00
parent f0f3591118
commit 1c03d43a5c

View File

@ -512,7 +512,7 @@ namespace std_fallback {
template<typename Scalar>
struct expm1_impl {
static inline Scalar run(const Scalar& x)
EIGEN_DEVICE_FUNC static inline Scalar run(const Scalar& x)
{
EIGEN_STATIC_ASSERT_NON_INTEGER(Scalar)
#if EIGEN_HAS_CXX11_MATH
@ -549,7 +549,7 @@ namespace std_fallback {
template<typename Scalar>
struct log1p_impl {
static inline Scalar run(const Scalar& x)
EIGEN_DEVICE_FUNC static inline Scalar run(const Scalar& x)
{
EIGEN_STATIC_ASSERT_NON_INTEGER(Scalar)
#if EIGEN_HAS_CXX11_MATH