Marked a few functions as EIGEN_DEVICE_FUNC to enable the use of tensors in cuda kernels.

This commit is contained in:
Benoit Steiner
2015-02-10 14:29:47 -08:00
parent fefec723aa
commit f669f5656a
4 changed files with 29 additions and 29 deletions

View File

@@ -275,7 +275,7 @@ struct DSizes : array<DenseIndex, NumDims> {
}
#endif
DSizes& operator = (const array<DenseIndex, NumDims>& other) {
EIGEN_DEVICE_FUNC DSizes& operator = (const array<DenseIndex, NumDims>& other) {
*static_cast<Base*>(this) = other;
return *this;
}