diff --git a/src/algebra/TinyVector.hpp b/src/algebra/TinyVector.hpp index d9661606be6b36cd40c882e529225d09241cdb41..0b4149428dc6fe72c0b9ce10abfc8141507cf9cd 100644 --- a/src/algebra/TinyVector.hpp +++ b/src/algebra/TinyVector.hpp @@ -32,6 +32,21 @@ public: return N; } + KOKKOS_INLINE_FUNCTION + bool operator==(const TinyVector& v) const + { + for (size_t i=0; i<N; ++i) { + if (m_values[i] != v.m_values[i]) return false; + } + return true; + } + + KOKKOS_INLINE_FUNCTION + bool operator!=(const TinyVector& v) const + { + return not this->operator==(v); + } + KOKKOS_INLINE_FUNCTION T operator,(const TinyVector& v) const {