![]() |
GHOST
1.1.2
General, Hybrid, and Optimized Sparse Toolkit
|
#include <stdlib.h>#include "ghost/sparsemat.h"#include "ghost/util.h"#include "ghost/mmio.h"#include "ghost/matrixmarket.h"#include "ghost/locality.h"
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) |
| int ghost_sparsemat_rowfunc_mm | ( | ghost_gidx | row, |
| ghost_lidx * | rowlen, | ||
| ghost_gidx * | col, | ||
| void * | val, | ||
| void * | arg | ||
| ) |
| row | |
| rowlen | |
| col | |
| val |
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.

| 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 | ||
| ) |

1.8.6