![]() |
GHOST
1.1.2
General, Hybrid, and Optimized Sparse Toolkit
|
#include <stdlib.h>#include <stdio.h>#include "ghost/util.h"#include "ghost/bincrs.h"#include "ghost/machine.h"#include "ghost/locality.h"
Macros | |
| #define | _XOPEN_SOURCE 500 |
| #define | SWAPREQ(header) (header.endianess == GHOST_BINCRS_LITTLE_ENDIAN)?ghost_machine_bigendian()?1:0:ghost_machine_bigendian()?0:1 |
Functions | |
| static uint32_t | bswap_32 (uint32_t val) |
| static uint64_t | bswap_64 (uint64_t val) |
| int | ghost_sparsemat_rowfunc_bincrs (ghost_gidx row, ghost_lidx *rowlen, ghost_gidx *col, void *val, void *arg) |
| ghost_error | ghost_bincrs_header_read (ghost_bincrs_header_t *header, char *matrixPath) |
| #define _XOPEN_SOURCE 500 |
| #define SWAPREQ | ( | header | ) | (header.endianess == GHOST_BINCRS_LITTLE_ENDIAN)?ghost_machine_bigendian()?1:0:ghost_machine_bigendian()?0:1 |
|
inlinestatic |
|
inlinestatic |
| ghost_error ghost_bincrs_header_read | ( | ghost_bincrs_header_t * | header, |
| char * | matrixPath | ||
| ) |

| int ghost_sparsemat_rowfunc_bincrs | ( | ghost_gidx | row, |
| ghost_lidx * | rowlen, | ||
| ghost_gidx * | col, | ||
| void * | val, | ||
| void * | arg | ||
| ) |
| row | |
| rowlen | |
| col | |
| val |
If called with row #GHOST_SPARSEMAT_ROWFUNC_BINCRS_ROW_INIT, the parameter val has to be a ghost_sparsemat_rowfunc_bincrs_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.

1.8.6