forked from dartonias/TFIM-ZeroT
-
Notifications
You must be signed in to change notification settings - Fork 1
/
head_proj.h
71 lines (51 loc) · 1.54 KB
/
head_proj.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#ifndef HEAD_PROJ_H
#define HEAD_PROJ_H
#include <iostream>
using namespace std;
#include <iomanip>
#include <vector>
#include <stack>
#include "MersenneTwister.h"
#include "matrix.h"
//Global constants here
#define alpha 2 //This is the number of replicas
class index2{
public:
int A;
int B;
index2() {A=0; B=0;};
index2(const int a, const int b) {A=a; B=b;};
index2 operator=(const index2 &z) {A=z.A; B=z.B; return *this;};
void set(const int a, const int b) {A=a; B=b;};
void print(){ cout<<"("<<A<<","<<B<<")"<<endl; };
};
class index3{
public:
int A;
int B;
int C;
index3() {A=0; B=0; C=0;};
index3(const int a, const int b, const int c)
{A=a; B=b; C=c;};
index3 operator=(const index3 &z)
{A=z.A; B=z.B; C=z.C; return *this;};
void set (const int a, const int b, const int c)
{A=a; B=b; C=c;};
void print(){ cout<<"("<<A<<","<<B<<","<<C<<")"<<endl; };
};
class index4{
public:
int A;
int B;
int C;
int D;
index4() {A=0; B=0; C=0; D=0;};
index4(const int a, const int b, const int c, const int d)
{A=a; B=b; C=c; D=d;};
index4 operator=(const index4 &z)
{A=z.A; B=z.B; C=z.C; D=z.D; return *this;};
void set (const int a, const int b, const int c, const int d)
{A=a; B=b; C=c; D=d;};
void print(){ cout<<"("<<A<<","<<B<<","<<C<<","<<D<<")"<<endl; };
};
#endif