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 Fname[MAX_LINE]; /* full matrix path name */
18  char MatNam[MaxNamLen]; /* short name */
19  char type[4]; /* type for HB matrices */
20  int Fmt; /* matrix format type */
21  int ndim; /* matrix size */
22  int nnz; /* number of nonzero */
23  int n_intv; /* number of slices */
24  double a; /* [a, b] interval of interest */
25  double b;
26 } io_t;
27 
28 int get_matrix_info( FILE *fmat, io_t *pio );
29 
30 int read_coo_MM(const char *matfile, int idxin, int idxout, cooMat *Acoo);
31 
32 /* types of user command-line input */
33 typedef enum {
34  INT,
36  STR,
38 } ARG_TYPE;
39 
40 #endif
41 
int get_matrix_info(FILE *fmat, io_t *pio)
Definition: io.c:22
double b
Definition: io.h:25
#define MAX_LINE
Definition: io.h:5
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 outfile[MAX_LINE]
Definition: io.h:16
FILE * fout
Definition: io.h:15
char Fname[MAX_LINE]
Definition: io.h:17
char MatNam[MaxNamLen]
Definition: io.h:18
#define MaxNamLen
Definition: io.h:6
This file contains function prototypes and constant definitions for EVSL.
Definition: io.h:14
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
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
int nnz
Definition: io.h:22