mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 03:39:01 +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...);
|
||||
}
|
||||
|
||||
Sizes() { }
|
||||
EIGEN_DEVICE_FUNC Sizes() { }
|
||||
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
|
||||
}
|
||||
#ifdef EIGEN_HAS_VARIADIC_TEMPLATES
|
||||
template <typename... DenseIndex> Sizes(DenseIndex...) { }
|
||||
explicit Sizes(std::initializer_list<std::ptrdiff_t> /*l*/) {
|
||||
template <typename... DenseIndex> EIGEN_DEVICE_FUNC Sizes(DenseIndex...) { }
|
||||
explicit EIGEN_DEVICE_FUNC Sizes(std::initializer_list<std::ptrdiff_t> /*l*/) {
|
||||
// todo: add assertion
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user