-
Notifications
You must be signed in to change notification settings - Fork 0
/
Main_Stability.hpp
31 lines (27 loc) · 930 Bytes
/
Main_Stability.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef MAIN_STABILITY_HPP
#define MAIN_STABILITY_HPP
// Includes
#include <random>
#include <iostream>
#include <fstream>
#include <unistd.h>
#include <sys/stat.h>
#include "Tools.hpp"
#include "Plots.hpp"
#include "Matrix.hpp"
using ::std::cin;
using ::std::cout;
using ::std::endl;
using ::std::fixed;
// Simulation types
#define SIMTYPE_SW 1
#define SIMTYPE_SF 2
#define SIMTYPE_LE 3
#define SIMTYPE_RG 4
#define SIMTYPE_GA 5
// Switches
//#define DETAILED_OUTPUT // if defined, information about every trial is printed into a file
//#define MAT_OUTPUT // if defined, every single matrix is printed into a file (DETAILED_OUTPUT has to be defined)
//#define EV_OUTPUT // if defined, eigenvalues of every single matrix are printed into a file (DETAILED_OUTPUT has to be defined)
#define NONZEROS_EXACT // if defined, there is always an exactly defined number of non-zeros in the matrix (depending on the connectance)
#endif