diff --git a/src/algebra/TinyVector.hpp b/src/algebra/TinyVector.hpp
index 9b2ca1619f0de8e2b811d41ae7be7f711c68a436..0ce3812ed138e497d8098d0aabcf3c174ad4b705 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
   {