fixed customIndices2Array forgetting first index

This commit is contained in:
Erik Schultheis 2021-12-10 16:41:59 +00:00 committed by Antonio Sánchez
parent 0b81185fe3
commit c35679af27

View File

@ -269,7 +269,7 @@ namespace internal {
template<typename IndexType, typename Index, Index First, Index... Is>
EIGEN_CONSTEXPR EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
array<Index, 1 + sizeof...(Is)> customIndices2Array(IndexType& idx, numeric_list<Index, First, Is...>) {
return { idx[Is]... };
return { idx[First], idx[Is]... };
}
template<typename IndexType, typename Index>
EIGEN_CONSTEXPR EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE