[go: up one dir, main page]

File: stat.h

package info (click to toggle)
colpack 1.0.9-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 6,280 kB
  • ctags: 1,573
  • sloc: cpp: 23,803; sh: 11,010; ansic: 1,142; makefile: 203
file content (31 lines) | stat: -rw-r--r-- 1,422 bytes parent folder | download
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
//This file provides the funtions needed to gather statistics about ColPack
#ifndef STAT_H
#define STAT_H

#include "ColPackHeaders.h"

using namespace ColPack;
using namespace std;


void printListOfGraphs(vector <string>& listOfGraphs, int selected);
vector<string> getListOfGraphs(string location_of_graph_list);


void toFileC(string baseDir, string stat_output_suffix, vector<string> Orderings, vector<string> Colorings, map<string, bool> stat_flags );

void toFileC_forColoringBasedOrdering(string baseDir, string stat_output_suffix, bool stat_output_append=1, bool stat_refresh_list = false);

void toFileBiC(string baseDir, string stat_output_suffix, vector<string> Orderings, vector<string> Colorings, map<string, bool> stat_flags );

void toFileBiPC(string baseDir, string stat_output_suffix, vector<string> Orderings, vector<string> Colorings, map<string, bool> stat_flags );

/* Note: be careful when you work with MatrixMarket-format. 
Look inside the file (1st line) to see whether the matrix is:
- 'symmetric': use toFileStatisticForGraph()
- 'general' (likely to be non-symmetric): use toFileStatisticForBipartiteGraph()
//*/
void toFileStatisticForGraph(string baseDir, string stat_output_suffix, map<string, bool> stat_flags); //i.e. Symmetric Matrix, Hessian
void toFileStatisticForBipartiteGraph(string baseDir, string stat_output_suffix, map<string, bool> stat_flags); //i.e. Matrix, Jacobian

#endif