EVSL  1.1.0
EigenValues Slicing Library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
io.h
Go to the documentation of this file.
1 #ifndef IO_H
2 #define IO_H
3 
4 #define MAX_MAT 100
5 #define MAX_LINE 1024
6 #define MaxNamLen 64
7 #define HB 1
8 #define MM0 2
9 #define MM1 3
10 #define UNK 4
11 
12 #include "evsl.h"
13 
14 typedef struct _io_t {
15  FILE *fout; /* output file handle */
16  char outfile[MAX_LINE]; /* output filename */
17  char Fname1[MAX_LINE]; /* full matrix path name */
18  char MatNam1[MaxNamLen]; /* short name */
19  char Fname2[MAX_LINE]; /* full matrix path name */
20  char MatNam2[MaxNamLen]; /* short name */
21  char PrecMeth[MAX_LINE]; /* preconditioner being tested */
22  char type[4]; /* type for HB matrices */
23  int Fmt; /* matrix format type */
24  int ndim; /* matrix size */
25  int nnz; /* number of nonzero */
26  int n_intv; /* number of slices */
27  double a; /* [a, b] interval of interest */
28  double b;
29 } io_t;
30 
31 int get_matrix_info( FILE *fmat, io_t *pio );
32 
33 int read_coo_MM(const char *matfile, int idxin, int idxout, cooMat *Acoo);
34 
35 /* types of user command-line input */
36 typedef enum {
37  INT,
39  STR,
41 } ARG_TYPE;
42 
43 #endif
44 
int get_matrix_info(FILE *fmat, io_t *pio)
Definition: io.c:22
double b
Definition: io.h:25
char PrecMeth[MAX_LINE]
Definition: io.h:21
ARG_TYPE
Definition: io.h:33
Definition: io.h:35
int Fmt
Definition: io.h:20
int ndim
Definition: io.h:21
Definition: io.h:34
Definition: io.h:36
char Fname1[MAX_LINE]
Definition: io.h:17
char outfile[MAX_LINE]
Definition: io.h:16
FILE * fout
Definition: io.h:15
char Fname2[MAX_LINE]
Definition: io.h:19
char MatNam2[MaxNamLen]
Definition: io.h:20
This file contains function prototypes and constant definitions for EVSL.
Definition: io.h:14
#define MAX_LINE
Definition: io.h:5
double a
Definition: io.h:24
int read_coo_MM(const char *matfile, int idxin, int idxout, cooMat *Acoo)
Definition: io.c:66
struct _io_t io_t
#define MaxNamLen
Definition: io.h:6
char type[4]
Definition: io.h:19
sparse matrix format: the coordinate (COO) format, 0-based
Definition: struct.h:16
int n_intv
Definition: io.h:23
Definition: io.h:37
char MatNam1[MaxNamLen]
Definition: io.h:18
int nnz
Definition: io.h:22