summaryrefslogtreecommitdiff
path: root/lib/z2.h
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2018-07-21 13:47:01 -0400
committerJaron Kent-Dobias <jaron@kent-dobias.com>2018-07-21 13:47:01 -0400
commit6b8448e5f80a7fa623678c532d1cceba0d19ac11 (patch)
tree8757a7a4d791503a525d249ca68b46763d82301b /lib/z2.h
parent0c69763278ed102d0e37aa1fb4feda5827c26c62 (diff)
downloadc++-6b8448e5f80a7fa623678c532d1cceba0d19ac11.tar.gz
c++-6b8448e5f80a7fa623678c532d1cceba0d19ac11.tar.bz2
c++-6b8448e5f80a7fa623678c532d1cceba0d19ac11.zip
made wolff-ising header files more pedogogical
Diffstat (limited to 'lib/z2.h')
-rw-r--r--lib/z2.h25
1 files changed, 13 insertions, 12 deletions
diff --git a/lib/z2.h b/lib/z2.h
index 599a6a5..dae1eb7 100644
--- a/lib/z2.h
+++ b/lib/z2.h
@@ -1,10 +1,21 @@
#pragma once
-#include <gsl/gsl_rng.h>
#include "types.h"
#include "ising.h"
-#include "state.h"
+
+/* The minimum definition for a group type R_t to act on a spin type X_t is
+ * given by the following.
+ *
+ * void init(R_t *p);
+ * void free_spin(R_t r);
+ * R_t copy(R_t r);
+ * X_t act(R_t r, X_t x);
+ * R_t act(R_t r, R_t r);
+ * X_t act_inverse(R_t r, X_t x);
+ * R_t act_inverse(R_t r, R_t r);
+ *
+ */
struct z2_t { bool x; };
@@ -52,13 +63,3 @@ z2_t act_inverse(z2_t r1, z2_t r2) {
return act(r1, r2);
}
-// these are all functions necessary for wolff.h
-
-z2_t generate_ising_rotation(gsl_rng *r, const state_t <z2_t, ising_t> *s) {
- z2_t rot;
- rot.x = true;
- return rot;
-}
-
-
-