Fix arm builds.

(cherry picked from commit 2c8011c2dd)
This commit is contained in:
Antonio Sánchez
2023-03-20 16:59:38 +00:00
committed by Antonio Sanchez
parent 34d0d83278
commit 72b0759451
3 changed files with 7 additions and 7 deletions

View File

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