diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorDimensions.h b/unsupported/Eigen/CXX11/src/Tensor/TensorDimensions.h index fc94c68d8..86405e69b 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorDimensions.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorDimensions.h @@ -68,8 +68,7 @@ struct fixed_size_tensor_index_extraction_helper const Dimensions& dimensions) { const Index mult = (index == n-1) ? 1 : 0; - return - array_get(dimensions) * mult + + return array_get(dimensions) * mult + fixed_size_tensor_index_extraction_helper::run(index, dimensions); } }; @@ -97,7 +96,6 @@ struct Sizes { static const std::ptrdiff_t total_size = internal::arg_prod(Indices...); static const size_t count = Base::count; - EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE std::ptrdiff_t rank() const { return Base::count; }