mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 11:49:02 +08:00
gen_numeric_list takes a size_t, not a int
This commit is contained in:
parent
dfbb889fe9
commit
aa5f1ca714
@ -110,7 +110,7 @@ namespace internal{
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Make an array (for index/dimensions) out of a custom index */
|
/** Make an array (for index/dimensions) out of a custom index */
|
||||||
template<typename Index, int NumIndices, typename IndexType>
|
template<typename Index, std::size_t NumIndices, typename IndexType>
|
||||||
EIGEN_CONSTEXPR EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
|
EIGEN_CONSTEXPR EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
|
||||||
array<Index, NumIndices> customIndices2Array(IndexType& idx) {
|
array<Index, NumIndices> customIndices2Array(IndexType& idx) {
|
||||||
return customIndices2Array(idx, typename gen_numeric_list<Index, NumIndices>::type{});
|
return customIndices2Array(idx, typename gen_numeric_list<Index, NumIndices>::type{});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user