summaryrefslogtreecommitdiff
path: root/hadamard_mcmc.hpp
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2020-02-03 16:13:20 -0500
committerJaron Kent-Dobias <jaron@kent-dobias.com>2020-02-03 16:13:20 -0500
commit4289204eaf42ed7003578adeea720a6230919fbd (patch)
treead7df01cba47ca319c28e03f6a52c566eb8e92a2 /hadamard_mcmc.hpp
parent3039e2c56532d4de852848df159df3041ee4bb4b (diff)
downloadcode-4289204eaf42ed7003578adeea720a6230919fbd.tar.gz
code-4289204eaf42ed7003578adeea720a6230919fbd.tar.bz2
code-4289204eaf42ed7003578adeea720a6230919fbd.zip
Ran clang format
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: