summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--complex_normal.hpp1
-rw-r--r--langevin.cpp11
-rw-r--r--p-spin.hpp6
-rw-r--r--stereographic.hpp2
-rw-r--r--tensor.hpp2
5 files changed, 7 insertions, 15 deletions
diff --git a/complex_normal.hpp b/complex_normal.hpp
index 0819758..8ed75d1 100644
--- a/complex_normal.hpp
+++ b/complex_normal.hpp
@@ -1,4 +1,5 @@
#pragma once
+
#include <complex>
#include <random>
diff --git a/langevin.cpp b/langevin.cpp
index b67d358..f494809 100644
--- a/langevin.cpp
+++ b/langevin.cpp
@@ -1,19 +1,14 @@
-#include <complex>
-#include <cstdlib>
-#include <functional>
#include <getopt.h>
-#include <random>
-
-#include "pcg-cpp/include/pcg_random.hpp"
-#include "randutils/randutils.hpp"
#include <eigen3/Eigen/LU>
-#include <eigen3/Eigen/Dense>
#include "complex_normal.hpp"
#include "p-spin.hpp"
#include "stereographic.hpp"
+#include "pcg-cpp/include/pcg_random.hpp"
+#include "randutils/randutils.hpp"
+
using Rng = randutils::random_generator<pcg32>;
Vector normalize(const Vector& z) {
diff --git a/p-spin.hpp b/p-spin.hpp
index 16e0a56..83e4e39 100644
--- a/p-spin.hpp
+++ b/p-spin.hpp
@@ -1,10 +1,6 @@
#pragma once
-#include <eigen3/Eigen/Core>
-#include <eigen3/unsupported/Eigen/CXX11/Tensor>
-
-#include "pcg-cpp/include/pcg_random.hpp"
-#include "randutils/randutils.hpp"
+#include <eigen3/Eigen/Dense>
#include "tensor.hpp"
diff --git a/stereographic.hpp b/stereographic.hpp
index 61d81c5..638923f 100644
--- a/stereographic.hpp
+++ b/stereographic.hpp
@@ -1,3 +1,5 @@
+#pragma once
+
#include <eigen3/Eigen/Cholesky>
#include "p-spin.hpp"
diff --git a/tensor.hpp b/tensor.hpp
index f442f87..528a51a 100644
--- a/tensor.hpp
+++ b/tensor.hpp
@@ -1,8 +1,6 @@
#pragma once
-#include <algorithm>
#include <array>
-#include <utility>
#include <eigen3/unsupported/Eigen/CXX11/Tensor>