diff options
author | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2016-02-24 16:43:01 -0800 |
---|---|---|
committer | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2016-02-24 16:43:01 -0800 |
commit | 7a01cb8e4b647e8cf4223f30266c8bab1d3fb66c (patch) | |
tree | 896925553b9baa586c01010fda36bf189171613c /unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h | |
parent | 91e1375ba97284d1a11068d27c039800ec7900f1 (diff) |
Marked the And and Or reducers as stateless.
Diffstat (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h')
-rw-r--r-- | unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h b/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h index e2d876140..7796e1a88 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h @@ -240,6 +240,8 @@ template <typename T> struct ProdReducer struct AndReducer { static const bool PacketAccess = false; + static const bool IsStateful = false; + EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void reduce(bool t, bool* accum) const { *accum = *accum && t; } @@ -253,6 +255,8 @@ struct AndReducer struct OrReducer { static const bool PacketAccess = false; + static const bool IsStateful = false; + EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void reduce(bool t, bool* accum) const { *accum = *accum || t; } |