From 4289204eaf42ed7003578adeea720a6230919fbd Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Mon, 3 Feb 2020 16:13:20 -0500 Subject: Ran clang format --- hadamard_mcmc.hpp | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'hadamard_mcmc.hpp') 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 using Rng = randutils::random_generator; @@ -21,9 +21,7 @@ public: } } - Orthogonal(const std::vector& x) : m(x) { - d = sqrt(x.size()); - } + Orthogonal(const std::vector& 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: -- cgit v1.2.3-70-g09d2