ESYS13  Revision_
Defines | Functions
mmio.c File Reference
#include "Common.h"
#include "mmio.h"
#include <string.h>
#include <ctype.h>

Defines

#define FSCANF_CHECK(scan_ret, reason)   { if (scan_ret == EOF) { perror(reason); return -1;} }

Functions

int mm_read_unsymmetric_sparse (const char *fname, int *M_, int *N_, int *nz_, double **val_, int **I_, int **J_)
int mm_is_valid (MM_typecode matcode)
int mm_read_banner (FILE *f, MM_typecode *matcode)
int mm_write_mtx_crd_size (FILE *f, int M, int N, int nz)
int mm_read_mtx_crd_size (FILE *f, int *M, int *N, int *nz)
int mm_read_mtx_array_size (FILE *f, int *M, int *N)
int mm_write_mtx_array_size (FILE *f, int M, int N)
int mm_read_mtx_crd_data (FILE *f, int M, int N, int nz, int Ip[], int Jp[], double val[], MM_typecode matcode)
int mm_read_mtx_crd_entry (FILE *f, int *Ip, int *Jp, double *real, double *imag, MM_typecode matcode)
int mm_read_mtx_crd (char *fname, int *M, int *N, int *nz, int **Ip, int **Jp, double **val, MM_typecode *matcode)
int mm_write_banner (FILE *f, MM_typecode matcode)
int mm_write_mtx_crd (char fname[], int M, int N, int nz, int Ip[], int Jp[], double val[], MM_typecode matcode)
char * mm_typecode_to_str (MM_typecode matcode)

Define Documentation

#define FSCANF_CHECK (   scan_ret,
  reason 
)    { if (scan_ret == EOF) { perror(reason); return -1;} }

Function Documentation

int mm_is_valid ( MM_typecode  matcode)
int mm_read_banner ( FILE *  f,
MM_typecode matcode 
)
int mm_read_mtx_array_size ( FILE *  f,
int *  M,
int *  N 
)
int mm_read_mtx_crd ( char *  fname,
int *  M,
int *  N,
int *  nz,
int **  Ip,
int **  Jp,
double **  val,
MM_typecode matcode 
)
int mm_read_mtx_crd_data ( FILE *  f,
int  M,
int  N,
int  nz,
int  Ip[],
int  Jp[],
double  val[],
MM_typecode  matcode 
)
int mm_read_mtx_crd_entry ( FILE *  f,
int *  Ip,
int *  Jp,
double *  real,
double *  imag,
MM_typecode  matcode 
)
int mm_read_mtx_crd_size ( FILE *  f,
int *  M,
int *  N,
int *  nz 
)
int mm_read_unsymmetric_sparse ( const char *  fname,
int *  M_,
int *  N_,
int *  nz_,
double **  val_,
int **  I_,
int **  J_ 
)
char* mm_typecode_to_str ( MM_typecode  matcode)
int mm_write_banner ( FILE *  f,
MM_typecode  matcode 
)
int mm_write_mtx_array_size ( FILE *  f,
int  M,
int  N 
)
int mm_write_mtx_crd ( char  fname[],
int  M,
int  N,
int  nz,
int  Ip[],
int  Jp[],
double  val[],
MM_typecode  matcode 
)
int mm_write_mtx_crd_size ( FILE *  f,
int  M,
int  N,
int  nz 
)