From ef8cc25cdf66208595e58d6499e4f4677f777cf3 Mon Sep 17 00:00:00 2001 From: Stephane Del Pino <stephane.delpino44@gmail.com> Date: Wed, 25 Apr 2018 18:51:06 +0200 Subject: [PATCH] Added static access to the dimension --- src/algebra/TinyVector.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/algebra/TinyVector.hpp b/src/algebra/TinyVector.hpp index 9b2ca1619..0ce3812ed 100644 --- a/src/algebra/TinyVector.hpp +++ b/src/algebra/TinyVector.hpp @@ -26,6 +26,11 @@ private: } public: + constexpr size_t dimension() const + { + return N; + } + KOKKOS_INLINE_FUNCTION T operator,(const TinyVector& v) const { -- GitLab