EVSL
1.1.0
EigenValues Slicing Library
Main Page
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
TESTS
COMMON_GEN
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
,
38
DOUBLE
,
39
STR
,
40
NA
41
}
ARG_TYPE
;
42
43
#endif
44
get_matrix_info
int get_matrix_info(FILE *fmat, io_t *pio)
Definition:
io.c:22
_io_t::b
double b
Definition:
io.h:25
_io_t::PrecMeth
char PrecMeth[MAX_LINE]
Definition:
io.h:21
ARG_TYPE
ARG_TYPE
Definition:
io.h:33
DOUBLE
Definition:
io.h:35
_io_t::Fmt
int Fmt
Definition:
io.h:20
_io_t::ndim
int ndim
Definition:
io.h:21
INT
Definition:
io.h:34
STR
Definition:
io.h:36
_io_t::Fname1
char Fname1[MAX_LINE]
Definition:
io.h:17
_io_t::outfile
char outfile[MAX_LINE]
Definition:
io.h:16
_io_t::fout
FILE * fout
Definition:
io.h:15
_io_t::Fname2
char Fname2[MAX_LINE]
Definition:
io.h:19
_io_t::MatNam2
char MatNam2[MaxNamLen]
Definition:
io.h:20
evsl.h
This file contains function prototypes and constant definitions for EVSL.
_io_t
Definition:
io.h:14
MAX_LINE
#define MAX_LINE
Definition:
io.h:5
_io_t::a
double a
Definition:
io.h:24
read_coo_MM
int read_coo_MM(const char *matfile, int idxin, int idxout, cooMat *Acoo)
Definition:
io.c:66
io_t
struct _io_t io_t
MaxNamLen
#define MaxNamLen
Definition:
io.h:6
_io_t::type
char type[4]
Definition:
io.h:19
_cooMat
sparse matrix format: the coordinate (COO) format, 0-based
Definition:
struct.h:16
_io_t::n_intv
int n_intv
Definition:
io.h:23
NA
Definition:
io.h:37
_io_t::MatNam1
char MatNam1[MaxNamLen]
Definition:
io.h:18
_io_t::nnz
int nnz
Definition:
io.h:22
Generated by
1.8.6