Enabled the use of fixed dimensions from within a cuda kernel.

This commit is contained in:
Benoit Steiner 2016-01-11 16:01:00 -08:00
parent 01c55d37e6
commit 4f7714d72c

View File

@ -110,14 +110,14 @@ struct Sizes : internal::numeric_list<std::ptrdiff_t, Indices...> {
return internal::arg_prod(Indices...); return internal::arg_prod(Indices...);
} }
Sizes() { } EIGEN_DEVICE_FUNC Sizes() { }
template <typename DenseIndex> template <typename DenseIndex>
explicit Sizes(const array<DenseIndex, Base::count>& /*indices*/) { explicit EIGEN_DEVICE_FUNC Sizes(const array<DenseIndex, Base::count>& /*indices*/) {
// todo: add assertion // todo: add assertion
} }
#ifdef EIGEN_HAS_VARIADIC_TEMPLATES #ifdef EIGEN_HAS_VARIADIC_TEMPLATES
template <typename... DenseIndex> Sizes(DenseIndex...) { } template <typename... DenseIndex> EIGEN_DEVICE_FUNC Sizes(DenseIndex...) { }
explicit Sizes(std::initializer_list<std::ptrdiff_t> /*l*/) { explicit EIGEN_DEVICE_FUNC Sizes(std::initializer_list<std::ptrdiff_t> /*l*/) {
// todo: add assertion // todo: add assertion
} }
#endif #endif