Hitmap 1.3
 All Data Structures Namespaces Files Functions Variables Typedefs Friends Macros Groups Pages
Functions
mmio.c File Reference
#include <stdio.h>
#include <string.h>
#include <malloc.h>
#include <ctype.h>
#include "mmio.h"
Include dependency graph for mmio.c:

Go to the source code of this file.

Functions

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 I[], int J[], double val[], MM_typecode matcode)
 
int mm_read_mtx_crd_entry (FILE *f, int *I, int *J, double *real, double *imag, MM_typecode matcode)
 
int mm_read_mtx_crd (char *fname, int *M, int *N, int *nz, int **I, int **J, 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 I[], int J[], double val[], MM_typecode matcode)
 
char * mm_typecode_to_str (MM_typecode matcode)
 

Function Documentation

int mm_is_valid ( MM_typecode  matcode)

Definition at line 17 of file mmio.c.

int mm_read_banner ( FILE *  f,
MM_typecode matcode 
)

Definition at line 27 of file mmio.c.

int mm_read_mtx_array_size ( FILE *  f,
int *  M,
int *  N 
)

Definition at line 154 of file mmio.c.

int mm_read_mtx_crd ( char *  fname,
int *  M,
int *  N,
int *  nz,
int **  I,
int **  J,
double **  val,
MM_typecode matcode 
)

Definition at line 269 of file mmio.c.

Here is the call graph for this function:

int mm_read_mtx_crd_data ( FILE *  f,
int  M,
int  N,
int  nz,
int  I[],
int  J[],
double  val[],
MM_typecode  matcode 
)

Definition at line 201 of file mmio.c.

int mm_read_mtx_crd_entry ( FILE *  f,
int *  I,
int *  J,
double *  real,
double *  imag,
MM_typecode  matcode 
)

Definition at line 234 of file mmio.c.

int mm_read_mtx_crd_size ( FILE *  f,
int *  M,
int *  N,
int *  nz 
)

Definition at line 123 of file mmio.c.

char* mm_typecode_to_str ( MM_typecode  matcode)

Definition at line 379 of file mmio.c.

int mm_write_banner ( FILE *  f,
MM_typecode  matcode 
)

Definition at line 322 of file mmio.c.

Here is the call graph for this function:

int mm_write_mtx_array_size ( FILE *  f,
int  M,
int  N 
)

Definition at line 185 of file mmio.c.

int mm_write_mtx_crd ( char  fname[],
int  M,
int  N,
int  nz,
int  I[],
int  J[],
double  val[],
MM_typecode  matcode 
)

Definition at line 335 of file mmio.c.

Here is the call graph for this function:

int mm_write_mtx_crd_size ( FILE *  f,
int  M,
int  N,
int  nz 
)

Definition at line 115 of file mmio.c.