summaryrefslogtreecommitdiff
path: root/lib/wolff.h
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2017-06-22 23:36:35 -0400
committerJaron Kent-Dobias <jaron@kent-dobias.com>2017-06-22 23:36:35 -0400
commitc902f022795157b28ef01cffcc499753e2212c28 (patch)
treed7bc1cf982d36a67894efecec45ee34e2a1100d2 /lib/wolff.h
parentefcad567ea9414b807017cbaadd7013e9310ca3e (diff)
downloadc++-c902f022795157b28ef01cffcc499753e2212c28.tar.gz
c++-c902f022795157b28ef01cffcc499753e2212c28.tar.bz2
c++-c902f022795157b28ef01cffcc499753e2212c28.zip
added correct support for negative external fields
Diffstat (limited to 'lib/wolff.h')
-rw-r--r--lib/wolff.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/wolff.h b/lib/wolff.h
index 4270f33..428ce85 100644
--- a/lib/wolff.h
+++ b/lib/wolff.h
@@ -31,6 +31,8 @@ typedef struct {
int32_t dHb;
} cluster_t;
+int32_t sign(double x);
+
cluster_t *flip_cluster(const graph_t *g, const double *ps, bool *x,
gsl_rng *r);