File: proto.h

package info (click to toggle)
metis 5.1.0.dfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 13,400 kB
  • ctags: 2,565
  • sloc: ansic: 29,849; makefile: 133; sh: 123
file content (60 lines) | stat: -rw-r--r-- 1,694 bytes parent folder | download | duplicates (13)
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
/*
 * proto.h 
 *
 * This file contains function prototypes
 *
 * Started 11/1/99
 * George
 *
 * $Id: proto.h 10513 2011-07-07 22:06:03Z karypis $
 *
 */

#ifndef _PROTOBIN_H_
#define _PROTOBIN_H_


/* io.c */ 
graph_t *ReadGraph(params_t *); 
mesh_t *ReadMesh(params_t *); 
void ReadTPwgts(params_t *params, idx_t ncon);
void ReadPOVector(graph_t *graph, char *filename, idx_t *vector);
void WritePartition(char *, idx_t *, idx_t, idx_t);
void WriteMeshPartition(char *, idx_t, idx_t, idx_t *, idx_t, idx_t *);
void WritePermutation(char *, idx_t *, idx_t);
void WriteGraph(graph_t *graph, char *filename);


/* smbfactor.c */
void ComputeFillIn(graph_t *graph, idx_t *perm, idx_t *iperm,
         size_t *r_maxlnz, size_t *r_opc);
idx_t smbfct(idx_t neqns, idx_t *xadj, idx_t *adjncy, idx_t *perm, 
          idx_t *invp, idx_t *xlnz, idx_t *maxlnz, idx_t *xnzsub, 
          idx_t *nzsub, idx_t *maxsub);


/* cmdline.c */
params_t *parse_cmdline(int argc, char *argv[]);

/* gpmetis.c */
void GPPrintInfo(params_t *params, graph_t *graph);
void GPReportResults(params_t *params, graph_t *graph, idx_t *part, idx_t edgecut);

/* ndmetis.c */
void NDPrintInfo(params_t *params, graph_t *graph);
void NDReportResults(params_t *params, graph_t *graph, idx_t *perm, idx_t *iperm);

/* mpmetis.c */
void MPPrintInfo(params_t *params, mesh_t *mesh);
void MPReportResults(params_t *params, mesh_t *mesh, idx_t *epart, idx_t *npart, 
         idx_t edgecut);

/* m2gmetis.c */
void M2GPrintInfo(params_t *params, mesh_t *mesh);
void M2GReportResults(params_t *params, mesh_t *mesh, graph_t *graph);

/* stat.c */
void ComputePartitionInfo(params_t *params, graph_t *graph, idx_t *where);


#endif