diff options
Diffstat (limited to 'euclidean.hpp')
-rw-r--r-- | euclidean.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/euclidean.hpp b/euclidean.hpp index b1a5e80..49ec2d9 100644 --- a/euclidean.hpp +++ b/euclidean.hpp @@ -25,10 +25,14 @@ public: r = r0; } + Vector<T, D> act(const Vector<T, D>& x) const { + return t + r * x; + } + template <class S> Spin<T, D, S> act(const Spin<T, D, S>& s) const { Spin<T, D, S> s_new; - s_new.x = t + r * s.x; + s_new.x = this->act(s.x); s_new.s = s.s; return s_new; |