mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-02-23 18:20:47 +08:00
fixed customIndices2Array forgetting first index
This commit is contained in:
parent
0b81185fe3
commit
c35679af27
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user