aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported
diff options
context:
space:
mode:
authorGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-03-11 16:37:59 -0800
committerGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-03-11 16:37:59 -0800
commitb72ffcb05e2abd631a0302061e06972f5fe8b0cc (patch)
tree6956cf30def04ebaedd43bb92e6e76c0591be61e /unsupported
parent25f69cb932f05b8509df14d14d2779a20fc9b091 (diff)
Made the comparison of Eigen::array GPU friendly
Diffstat (limited to 'unsupported')
-rw-r--r--unsupported/Eigen/CXX11/src/Core/util/EmulateArray.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/unsupported/Eigen/CXX11/src/Core/util/EmulateArray.h b/unsupported/Eigen/CXX11/src/Core/util/EmulateArray.h
index 894b22009..efe688e50 100644
--- a/unsupported/Eigen/CXX11/src/Core/util/EmulateArray.h
+++ b/unsupported/Eigen/CXX11/src/Core/util/EmulateArray.h
@@ -180,7 +180,7 @@ template <typename T> class array<T, 0> {
// Comparison operator
// Todo: implement !=, <, <=, >, and >=
template<class T, std::size_t N>
-bool operator==(const array<T,N>& lhs, const array<T,N>& rhs) {
+EIGEN_DEVICE_FUNC bool operator==(const array<T,N>& lhs, const array<T,N>& rhs) {
for (std::size_t i = 0; i < N; ++i) {
if (lhs[i] != rhs[i]) {
return false;