diff --git a/coord/ops.hpp b/coord/ops.hpp index d8b47903..c996b8d4 100644 --- a/coord/ops.hpp +++ b/coord/ops.hpp @@ -887,6 +887,25 @@ namespace util { for (size_t i = 0; i < S; ++i) \ out[i] = k[i] OP u; \ return out; \ + } \ + \ + template < \ + size_t S, \ + typename T, \ + typename U, \ + template class K, \ + typename = std::enable_if_t< \ + is_coord_v>, void \ + > \ + > \ + constexpr \ + vector \ + operator OP (const U u, const K k) \ + { \ + vector out {}; \ + for (size_t i = 0; i < S; ++i) \ + out[i] = u OP k[i]; \ + return out; \ } SCALAR_OP(<)