diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2019-09-23 23:40:02 -0400 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2019-09-23 23:40:02 -0400 |
commit | 1c72acfda984f73ddc96d51596f9e761a963944a (patch) | |
tree | ff56fa98c7641fb9890eaf82f3f57ff31959668a /lib/include/problem.hpp | |
parent | 3f7f20f21f583ca2de566bea08a87eac4b17ad29 (diff) | |
download | fuse_networks-1c72acfda984f73ddc96d51596f9e761a963944a.tar.gz fuse_networks-1c72acfda984f73ddc96d51596f9e761a963944a.tar.bz2 fuse_networks-1c72acfda984f73ddc96d51596f9e761a963944a.zip |
ran clang-format
Diffstat (limited to 'lib/include/problem.hpp')
-rw-r--r-- | lib/include/problem.hpp | 41 |
1 files changed, 20 insertions, 21 deletions
diff --git a/lib/include/problem.hpp b/lib/include/problem.hpp index 740751d..c454a35 100644 --- a/lib/include/problem.hpp +++ b/lib/include/problem.hpp @@ -1,10 +1,10 @@ -#include <vector> #include <limits> +#include <vector> -#include <cholmod.h> -#include "graph.hpp" #include "current_info.hpp" +#include "graph.hpp" +#include <cholmod.h> #ifdef FRACTURE_LONGINT @@ -19,22 +19,21 @@ #endif class problem { - private: - const graph& G; - unsigned axis; - cholmod_dense* b; - cholmod_factor* factor; - cholmod_sparse* voltcurmat; - cholmod_common* c; - - public: - current_info sol; - - problem(const graph&, unsigned, cholmod_common*); - problem(const graph&, unsigned, cholmod_sparse*, cholmod_common*); - problem(const problem&); - ~problem(); - void solve(std::vector<bool>& fuses); - void break_edge(unsigned, bool unbreak = false); +private: + const graph& G; + unsigned axis; + cholmod_dense* b; + cholmod_factor* factor; + cholmod_sparse* voltcurmat; + cholmod_common* c; + +public: + current_info sol; + + problem(const graph&, unsigned, cholmod_common*); + problem(const graph&, unsigned, cholmod_sparse*, cholmod_common*); + problem(const problem&); + ~problem(); + void solve(std::vector<bool>& fuses); + void break_edge(unsigned, bool unbreak = false); }; - |