GHOST  1.1.2
General, Hybrid, and Optimized Sparse Toolkit
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
matrixmarket.c File Reference
#include <stdlib.h>
#include "ghost/sparsemat.h"
#include "ghost/util.h"
#include "ghost/mmio.h"
#include "ghost/matrixmarket.h"
#include "ghost/locality.h"
Include dependency graph for matrixmarket.c:

Functions

int ghost_sparsemat_rowfunc_mm (ghost_gidx row, ghost_lidx *rowlen, ghost_gidx *col, void *val, void *arg)
 
int ghost_sparsemat_rowfunc_mm_transpose (ghost_gidx row, ghost_lidx *rowlen, ghost_gidx *col, void *val, void *arg)
 
ghost_error ghost_sparsemat_to_mm (char *path, ghost_sparsemat *mat)
 

Function Documentation

int ghost_sparsemat_rowfunc_mm ( ghost_gidx  row,
ghost_lidx rowlen,
ghost_gidx col,
void *  val,
void *  arg 
)
Parameters
row
rowlen
col
val
Returns

If called with row GHOST_SPARSEMAT_ROWFUNC_MM_ROW_INIT, the parameter val has to be a ghost_sparsemat_rowfunc_mm_initargs * with the according information filled in. The parameter col has to be a ghost_gidx[2] in which the number of rows and columns will be stored.

Here is the call graph for this function:

int ghost_sparsemat_rowfunc_mm_transpose ( ghost_gidx  row,
ghost_lidx rowlen,
ghost_gidx col,
void *  val,
void *  arg 
)

Here is the call graph for this function:

ghost_error ghost_sparsemat_to_mm ( char *  path,
ghost_sparsemat mat 
)

Here is the call graph for this function: