-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathLatticeStuff.h
51 lines (34 loc) · 1.96 KB
/
LatticeStuff.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
#pragma once
#include "Headers.h"
void create_Bmat_bimodal(std::vector <float>& Bmat,float del);
void update_Bmat_bimodal(std::vector <float>& Bmat, float del);
void create_Bmat_gaussian(std::vector <float>& Bmat, float del);
void create_Exmat(std::vector < std::vector <int> >& Exmat);
void create_CapacityMat(std::vector < std::vector <float> >& CapacityMat, std::vector < std::vector <int> >& Exmat);
void create_Wmat(std::vector < float >& Wmat, std::vector < std::vector <float> >& CapacityMat, std::vector <float >& BMat, float del);
void create_Augumented_CapacityMat(std::vector < float >& Wmat, std::vector < std::vector <float> >& CapacityMat);
void create_Residual_graph(std::vector < std::vector <float> >& CapacityMat, std::vector < std::vector <float> >& flow);
void printMatrix(std::vector <std::vector <int> > const & M, int len);
void printMatrix(std::vector <std::vector <float> > & M, int len);
void printMatrix(std::vector<int> const & M, int len);
void savedata(std::vector< int > & Mat, int l, float del, std::string s);
void savedata(std::vector< std::vector< float > > & Mat, int l, float del, std::string s);
void savedata(std::vector< float > & Mat, int l, float del, std::string s);
// this func re- intializes all the matrices with zero.
void Reinit(std::vector < std::vector <int> >& sqlat0,
std::vector < std::vector <int> >& sqlat1,
std::vector < std::vector <float> >& flow,
std::vector < std::vector<float> >& CapacityMat,
std::vector <int>& visited,
std::vector <int>& clusstats0,
std::vector <int>& clusstats1,
std::vector<float>& Wmat);
// this func clears all matrices
void ClearAll(std::vector < std::vector <int> >& sqlat0,
std::vector < std::vector <int> >& sqlat1,
std::vector < std::vector <float> >& flow,
std::vector < std::vector<float> >& CapacityMat,
std::vector <int>& visited,
std::vector <int>& clusstats0,
std::vector <int>& clusstats1,
std::vector<float>& Wmat);