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
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
,
35
DOUBLE
,
36
STR
,
37
NA
38
}
ARG_TYPE
;
39
40
#endif
41
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
MAX_LINE
#define MAX_LINE
Definition:
io.h:5
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::outfile
char outfile[MAX_LINE]
Definition:
io.h:16
_io_t::fout
FILE * fout
Definition:
io.h:15
_io_t::Fname
char Fname[MAX_LINE]
Definition:
io.h:17
_io_t::MatNam
char MatNam[MaxNamLen]
Definition:
io.h:18
MaxNamLen
#define MaxNamLen
Definition:
io.h:6
evsl.h
This file contains function prototypes and constant definitions for EVSL.
_io_t
Definition:
io.h:14
_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
_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::nnz
int nnz
Definition:
io.h:22
Generated by
1.8.6