Merged in ezhulenev/eigen/fix_dsizes (pull request PR-494)

Fix DSizes IndexList constructor
This commit is contained in:
Rasmus Munk Larsen 2018-09-15 02:36:19 +00:00
commit c2383f95af

View File

@ -291,8 +291,8 @@ struct DSizes : array<DenseIndex, NumDims> {
}
#ifdef EIGEN_HAS_INDEX_LIST
EIGEN_DEVICE_FUNC
template <typename FirstType, typename... OtherTypes>
EIGEN_DEVICE_FUNC
DSizes(const Eigen::IndexList<FirstType, OtherTypes...>& dimensions) {
for (int i = 0; i < dimensions.count; ++i) {
(*this)[i] = dimensions[i];