summaryrefslogtreecommitdiff
path: root/hadamard_mcmc.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'hadamard_mcmc.hpp')
-rw-r--r--hadamard_mcmc.hpp15
1 files changed, 4 insertions, 11 deletions
diff --git a/hadamard_mcmc.hpp b/hadamard_mcmc.hpp
index e64eacf..bb948de 100644
--- a/hadamard_mcmc.hpp
+++ b/hadamard_mcmc.hpp
@@ -1,7 +1,7 @@
#pragma once
-#include "randutils/randutils.hpp"
#include "pcg-cpp/include/pcg_random.hpp"
+#include "randutils/randutils.hpp"
#include <vector>
using Rng = randutils::random_generator<pcg32>;
@@ -21,9 +21,7 @@ public:
}
}
- Orthogonal(const std::vector<double>& x) : m(x) {
- d = sqrt(x.size());
- }
+ Orthogonal(const std::vector<double>& x) : m(x) { d = sqrt(x.size()); }
unsigned size() const { return d; }
@@ -54,8 +52,7 @@ private:
double Δθ;
public:
- Givens(Orthogonal& m, bool t, unsigned a1, unsigned a2, double θ0, Rng& rng)
- : m(m) {
+ Givens(Orthogonal& m, bool t, unsigned a1, unsigned a2, double θ0, Rng& rng) : m(m) {
transpose = t;
axis_1 = a1;
axis_2 = a2;
@@ -123,11 +120,7 @@ public:
virtual void after_sweep(double, double, const Orthogonal&){};
};
-typedef enum {
- none,
- up,
- down
-} color;
+typedef enum { none, up, down } color;
class MCMC {
private: