From d3943cd50c99d7169c3d5a1ea4aa4d8660190e2d Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Wed, 19 Oct 2016 12:56:12 -0700 Subject: [PATCH] Fixed a few typos in the ternary tensor expressions types --- Eigen/Core | 4 ++++ unsupported/Eigen/CXX11/src/Tensor/TensorEvaluator.h | 2 +- unsupported/Eigen/CXX11/src/Tensor/TensorExpr.h | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Eigen/Core b/Eigen/Core index fcc107721..d4274770e 100644 --- a/Eigen/Core +++ b/Eigen/Core @@ -37,6 +37,10 @@ // All functions callable from CUDA code must be qualified with __device__ #define EIGEN_DEVICE_FUNC __host__ __device__ + // We need math_functions.hpp to ensure that that EIGEN_USING_STD_MATH macro + // works properly on the device side + #include + #else #define EIGEN_DEVICE_FUNC diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorEvaluator.h b/unsupported/Eigen/CXX11/src/Tensor/TensorEvaluator.h index 61c111cec..f0383c6bf 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorEvaluator.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorEvaluator.h @@ -495,7 +495,7 @@ struct TensorEvaluator m_arg1Impl; - TensorEvaluator m_arg2Impl; + TensorEvaluator m_arg2Impl; TensorEvaluator m_arg3Impl; }; diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorExpr.h b/unsupported/Eigen/CXX11/src/Tensor/TensorExpr.h index 5f2e329f2..85dfc7a69 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorExpr.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorExpr.h @@ -283,7 +283,7 @@ class TensorCwiseTernaryOp : public TensorBase::type& + const typename internal::remove_all::type& arg2Expression() const { return m_arg2_xpr; } EIGEN_DEVICE_FUNC @@ -292,7 +292,7 @@ class TensorCwiseTernaryOp : public TensorBase