diff options
author | Rasmus Munk Larsen <rmlarsen@google.com> | 2019-02-19 10:49:54 -0800 |
---|---|---|
committer | Rasmus Munk Larsen <rmlarsen@google.com> | 2019-02-19 10:49:54 -0800 |
commit | 071629a4403b33072ee9121d762cf0f8ca7a593a (patch) | |
tree | 89ecf0dff1d36da711480285126efc8ee3e67d5d /unsupported/Eigen/CXX11/src/Tensor/TensorContraction.h | |
parent | a1646fc960c26b99da0a870e69bba089fd0871ff (diff) |
Fix incorrect value of NumDimensions in TensorContraction traits.
Reported here: #1671
Diffstat (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorContraction.h')
-rw-r--r-- | unsupported/Eigen/CXX11/src/Tensor/TensorContraction.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorContraction.h b/unsupported/Eigen/CXX11/src/Tensor/TensorContraction.h index 61a4e1a3a..6ca881f27 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorContraction.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorContraction.h @@ -102,7 +102,7 @@ struct traits<TensorContractionOp<Dimensions, LhsXprType, RhsXprType, OutputKern typedef typename remove_reference<RhsNested>::type _RhsNested; // From NumDims below. - static const int NumDimensions = traits<RhsXprType>::NumDimensions + traits<RhsXprType>::NumDimensions - 2 * array_size<Dimensions>::value; + static const int NumDimensions = traits<LhsXprType>::NumDimensions + traits<RhsXprType>::NumDimensions - 2 * array_size<Dimensions>::value; static const int Layout = traits<LhsXprType>::Layout; typedef typename conditional<Pointer_type_promotion<typename LhsXprType::Scalar, Scalar>::val, typename traits<LhsXprType>::PointerType, typename traits<RhsXprType>::PointerType>::type PointerType; |