Made the comparison of Eigen::array GPU friendly

This commit is contained in:
Benoit Steiner 2016-03-11 16:37:59 -08:00
parent 25f69cb932
commit b72ffcb05e

View File

@ -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;