mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-10 10:49:04 +08:00
Fix DSizes IndexList constructor
This commit is contained in:
parent
601e289d27
commit
f7d0053cf0
@ -291,8 +291,8 @@ struct DSizes : array<DenseIndex, NumDims> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef EIGEN_HAS_INDEX_LIST
|
#ifdef EIGEN_HAS_INDEX_LIST
|
||||||
EIGEN_DEVICE_FUNC
|
|
||||||
template <typename FirstType, typename... OtherTypes>
|
template <typename FirstType, typename... OtherTypes>
|
||||||
|
EIGEN_DEVICE_FUNC
|
||||||
DSizes(const Eigen::IndexList<FirstType, OtherTypes...>& dimensions) {
|
DSizes(const Eigen::IndexList<FirstType, OtherTypes...>& dimensions) {
|
||||||
for (int i = 0; i < dimensions.count; ++i) {
|
for (int i = 0; i < dimensions.count; ++i) {
|
||||||
(*this)[i] = dimensions[i];
|
(*this)[i] = dimensions[i];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user