-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpru.cpp
More file actions
78 lines (56 loc) · 1.46 KB
/
pru.cpp
File metadata and controls
78 lines (56 loc) · 1.46 KB
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
72
73
74
75
76
77
78
#include <iostream>
#include <itpp/itbase.h>
#include <cpp/dev_random.cpp>
#include <cpp/itpp_ext_math.cpp>
#include <cpp/spinchain.cpp>
#include <math.h>
#include <tclap/CmdLine.h>
#include "tools.cpp"
#include <time.h>
// TCLAP::CmdLine cmd("Command description message", ' ', "0.1");
// TCLAP::ValueArg<int> num_a("","a", "Some int",false, 0,"int",cmd);
// TCLAP::ValueArg<int> num_b("","b", "Some int",false, 0,"int",cmd);
using namespace std;
//PARA COMPILAR
// g++ -I ../libs/ pru.cpp -o pru -litpp
int main(int argc,char* argv[]) {
// cmd.parse(argc,argv);
// Set initial stuff
// //cout<<bit_reflection_h2(num_a.getValue(),num_b.getValue())<<endl;
//
// int l = pow(2,num_a.getValue());
// int *S=new int[l];
// for(int m=0;m<l;m++) {
// S[m]=2;
// }
// find_states_reflection(S,num_a.getValue(),num_b.getValue(),l);
// int rcont=0;
//
// for(int i=0;i<l;i++) {
// if(S[i]==1) {
// cout<<i<<endl;
// S[rcont]=i;
// rcont++;
// }
// }
//
//
// //itpp::cmat sumsig=itpp::zeros_c(6,6);
//
// //cout<<sumsig(2)<<endl;
// itpp::imat conexx=conexiones(10,6,10);
itpp::ivec conA,conB;
ifstream con;
con.open("conexiones.txt");
int len, nada;
con >> len >> nada;
itpp::ivec conX(len);
conA=conX;
conB=conX;
for(int i=0;i<len;i++) {
con >> conA(i) >> conB(i);
}
con.close();
cout<<conA<<endl;
cout<<conB<<endl;
}