mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-22 22:33:15 +08:00
Updated customIndices2Array to handle various index sizes.
This commit is contained in:
parent
3011dc94ef
commit
df3da0780d
@ -168,12 +168,12 @@ template <typename Idx> struct IndexPair {
|
|||||||
#ifdef EIGEN_HAS_SFINAE
|
#ifdef EIGEN_HAS_SFINAE
|
||||||
namespace internal {
|
namespace internal {
|
||||||
|
|
||||||
template<typename IndexType, Index... Is>
|
template<typename IndexType, typename Index, Index... Is>
|
||||||
EIGEN_CONSTEXPR EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
|
EIGEN_CONSTEXPR EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
|
||||||
array<Index, sizeof...(Is)> customIndices2Array(IndexType& idx, numeric_list<Index, Is...>) {
|
array<Index, sizeof...(Is)> customIndices2Array(IndexType& idx, numeric_list<Index, Is...>) {
|
||||||
return { idx[Is]... };
|
return { idx[Is]... };
|
||||||
}
|
}
|
||||||
template<typename IndexType>
|
template<typename IndexType, typename Index>
|
||||||
EIGEN_CONSTEXPR EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
|
EIGEN_CONSTEXPR EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
|
||||||
array<Index, 0> customIndices2Array(IndexType&, numeric_list<Index>) {
|
array<Index, 0> customIndices2Array(IndexType&, numeric_list<Index>) {
|
||||||
return array<Index, 0>();
|
return array<Index, 0>();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user