From b72ffcb05e2abd631a0302061e06972f5fe8b0cc Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Fri, 11 Mar 2016 16:37:59 -0800 Subject: [PATCH] Made the comparison of Eigen::array GPU friendly --- unsupported/Eigen/CXX11/src/Core/util/EmulateArray.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 class array { // Comparison operator // Todo: implement !=, <, <=, >, and >= template -bool operator==(const array& lhs, const array& rhs) { +EIGEN_DEVICE_FUNC bool operator==(const array& lhs, const array& rhs) { for (std::size_t i = 0; i < N; ++i) { if (lhs[i] != rhs[i]) { return false;