From c902f022795157b28ef01cffcc499753e2212c28 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Thu, 22 Jun 2017 23:36:35 -0400 Subject: added correct support for negative external fields --- lib/wolff.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/wolff.h') 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); -- cgit v1.2.3-70-g09d2