diff --git a/coord/ops.hpp b/coord/ops.hpp index 953a023d..7f02b37e 100644 --- a/coord/ops.hpp +++ b/coord/ops.hpp @@ -148,6 +148,15 @@ namespace util { SCALAR_OP(/=) #undef SCALAR_OP + //------------------------------------------------------------------------- + // negation + template class K> + K operator- (K k) + { + k *= -1; + return ; + } + /////////////////////////////////////////////////////////////////////////// // logic operators