-
Notifications
You must be signed in to change notification settings - Fork 0
/
defs.h
executable file
·53 lines (46 loc) · 1.11 KB
/
defs.h
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#include <iostream>
#include "inputs3.h"
using namespace std;
void Assert(bool b,string msg){
if(!b){
cout<<"Error :" <<msg<<endl;
exit(1);
}
}
int BIGC = NF;//(WEIGHTED_REWARDS)? NF*NF:NF;
int gitr1 = 4000;
int gitr2 = 12000;
#define ulli unsigned long long int
ulli tNF = (ulli) pow(2.0,NF);
map<int, vector <bool> > eimap;
map<int, vector <bool> > simap;
map<int, double> p1probmap;
map<int, double> p2probmap;
template <typename T>
T StringToNumber ( const string &Text )//Text not by const reference so that the function can be used with a
{ //character array as argument
stringstream ss(Text);
T result;
return ss >> result ? result : 0;
}
//double EPS = 1e-10;
double EPS = 1e-8;
double EPSCHECK = 1e-5;
bool PROBINPUT = false;
int NNZ = 10000000;
string toSTR(int n){
string s;
stringstream out;
out << n;
return out.str();
}
class sparseMat {
public:
vector< pair<int,int> > ij;
vector<double> v;
int N;
};
#define WEIGHTED_REWARDS true
#define EXTRA 0
#define DFLAG true
#define pl() if(DFLAG) cout<<__LINE__<<endl