From ffd770ce94b75202187635bf0e1e4d0006f4a015 Mon Sep 17 00:00:00 2001 From: Till Hoffmann Date: Fri, 1 Apr 2016 17:58:24 +0100 Subject: Fixed CUDA signature. --- unsupported/Eigen/CXX11/src/Tensor/TensorBase.h | 26 +++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorBase.h') diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorBase.h b/unsupported/Eigen/CXX11/src/Tensor/TensorBase.h index 65b969aaf..77b509f61 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorBase.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorBase.h @@ -132,18 +132,6 @@ class TensorBase digamma() const { return unaryExpr(internal::scalar_digamma_op()); } - - EIGEN_DEVICE_FUNC - EIGEN_STRONG_INLINE const TensorCwiseUnaryOp, const Derived> - zeta() const { - return unaryExpr(internal::scalar_zeta_op()); - } - - EIGEN_DEVICE_FUNC - EIGEN_STRONG_INLINE const TensorCwiseUnaryOp, const Derived> - polygamma() const { - return unaryExpr(internal::scalar_polygamma_op()); - } EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorCwiseUnaryOp, const Derived> @@ -365,6 +353,20 @@ class TensorBase igammac(const OtherDerived& other) const { return binaryExpr(other.derived(), internal::scalar_igammac_op()); } + + // zeta(x = this, q = other) + template EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE + const TensorCwiseBinaryOp, const Derived, const OtherDerived> + igammac(const OtherDerived& other) const { + return binaryExpr(other.derived(), internal::scalar_igammac_op()); + } + + // polygamma(n = this, x = other) + template EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE + const TensorCwiseBinaryOp, const Derived, const OtherDerived> + igammac(const OtherDerived& other) const { + return binaryExpr(other.derived(), internal::scalar_igammac_op()); + } // comparisons and tests for Scalars EIGEN_DEVICE_FUNC -- cgit v1.2.3