mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 11:49:02 +08:00
Enabled the use of fixed dimensions from within a cuda kernel.
This commit is contained in:
parent
01c55d37e6
commit
4f7714d72c
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user