summaryrefslogtreecommitdiff
path: root/spin.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'spin.hpp')
-rw-r--r--spin.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/spin.hpp b/spin.hpp
index d4d39cc..bb8369b 100644
--- a/spin.hpp
+++ b/spin.hpp
@@ -7,5 +7,7 @@ template <class T, int D, class S> class Spin {
public:
Vector<T, D> x;
S s;
+
+ Spin() { x = Vector<T, D>::Zero(); }
};