From c35679af276184736e1293776b563c6d00445e26 Mon Sep 17 00:00:00 2001 From: Erik Schultheis Date: Fri, 10 Dec 2021 16:41:59 +0000 Subject: [PATCH] fixed customIndices2Array forgetting first index --- unsupported/Eigen/CXX11/src/Tensor/TensorMeta.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorMeta.h b/unsupported/Eigen/CXX11/src/Tensor/TensorMeta.h index 9eca6b27a..8b107ebcb 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorMeta.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorMeta.h @@ -269,7 +269,7 @@ namespace internal { template EIGEN_CONSTEXPR EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE array customIndices2Array(IndexType& idx, numeric_list) { - return { idx[Is]... }; + return { idx[First], idx[Is]... }; } template EIGEN_CONSTEXPR EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE