From c53f783705e05c07d9f1c02ab12fdb5d57f1a7a9 Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Thu, 1 Sep 2016 11:41:27 -0700 Subject: Updated the contraction code to support constant inputs. --- unsupported/Eigen/CXX11/src/Tensor/TensorContraction.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'unsupported/Eigen') diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorContraction.h b/unsupported/Eigen/CXX11/src/Tensor/TensorContraction.h index a6001074b..20b29e5fd 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorContraction.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorContraction.h @@ -25,7 +25,8 @@ template struct traits > { // Type promotion to handle the case where the types of the lhs and the rhs are different. - typedef typename gebp_traits::ResScalar Scalar; + typedef typename gebp_traits::type, + typename remove_const::type>::ResScalar Scalar; typedef typename promote_storage_type::StorageKind, typename traits::StorageKind>::ret StorageKind; -- cgit v1.2.3