EVSL  1.1.0
EigenValues Slicing Library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions
io.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "mmio.h"
#include "io.h"
#include "evsl.h"

Go to the source code of this file.

Macros

#define ERR_IO   10
 

Functions

char * mybasename (const char *name)
 
int get_matrix_info (FILE *fmat, io_t *pio)
 
int read_coo_MM (const char *matfile, int idxin, int idxout, cooMat *Acoo)
 
int findarg (const char *argname, ARG_TYPE type, void *val, int argc, char **argv)
 

Macro Definition Documentation

#define ERR_IO   10

Definition at line 9 of file io.c.

Referenced by get_matrix_info().

Function Documentation

int findarg ( const char *  argname,
ARG_TYPE  type,
void *  val,
int  argc,
char **  argv 
)

Definition at line 177 of file io.c.

References DOUBLE, INT, NA, and STR.

Referenced by main().

Here is the caller graph for this function:

int get_matrix_info ( FILE *  fmat,
io_t pio 
)

Definition at line 22 of file io.c.

References _io_t::a, _io_t::b, ERR_IO, _io_t::Fmt, _io_t::Fname, _io_t::Fname1, _io_t::Fname2, _io_t::MatNam, _io_t::MatNam1, _io_t::MatNam2, MAX_LINE, MaxNamLen, MM0, MM1, and _io_t::n_intv.

Referenced by main().

Here is the caller graph for this function:

char* mybasename ( const char *  name)

Definition at line 11 of file io.c.

int read_coo_MM ( const char *  matfile,
int  idxin,
int  idxout,
cooMat Acoo 
)

Definition at line 72 of file io.c.

References _cooMat::ir, _cooMat::jc, MAX_LINE, mm_is_coordinate, mm_is_integer, mm_is_real, mm_is_sparse, mm_is_symmetric, mm_is_valid(), mm_read_banner(), mm_read_mtx_crd_size(), _cooMat::ncols, _cooMat::nnz, _cooMat::nrows, and _cooMat::vv.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function: