summaryrefslogtreecommitdiff
path: root/euclidean.hpp
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2020-02-19 15:56:21 -0500
committerJaron Kent-Dobias <jaron@kent-dobias.com>2020-02-19 15:56:21 -0500
commitcf4dae88483f0f55edf71d1dc4c04bdc93001539 (patch)
treea24fce32329822adc01cbc32840e3ed451c29fa3 /euclidean.hpp
parentf2b2e459230a5840604643421d58e2afd7ed5496 (diff)
downloadspace_wolff-cf4dae88483f0f55edf71d1dc4c04bdc93001539.tar.gz
space_wolff-cf4dae88483f0f55edf71d1dc4c04bdc93001539.tar.bz2
space_wolff-cf4dae88483f0f55edf71d1dc4c04bdc93001539.zip
Unsucessfully implemented showing the reflection plane.
Diffstat (limited to 'euclidean.hpp')
-rw-r--r--euclidean.hpp6
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;