mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-10-09 22:56:31 +08:00
Made it possible to use array of size 0 on CUDA devices
This commit is contained in:
parent
3358dfd5dd
commit
d726e864ac
@ -132,13 +132,13 @@ template <typename T> class array<T, 0> {
|
||||
return *static_cast<const T*>(NULL);
|
||||
}
|
||||
|
||||
static EIGEN_ALWAYS_INLINE std::size_t size() { return 0; }
|
||||
static EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE std::size_t size() { return 0; }
|
||||
|
||||
EIGEN_DEVICE_FUNC
|
||||
EIGEN_STRONG_INLINE array() { }
|
||||
|
||||
#ifdef EIGEN_HAS_VARIADIC_TEMPLATES
|
||||
array(std::initializer_list<T> l) {
|
||||
EIGEN_DEVICE_FUNC array(std::initializer_list<T> l) {
|
||||
eigen_assert(l.size() == 0);
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user