![]() |
GHOST
1.1.2
General, Hybrid, and Optimized Sparse Toolkit
|
Types and functions for reading binary CRS files. More...
#include "config.h"#include "types.h"#include "error.h"#include "context.h"#include "sparsemat.h"#include <stdio.h>

Go to the source code of this file.
Classes | |
| struct | ghost_bincrs_header_t |
| The header of a sparse matrix file. More... | |
Macros | |
| #define | GHOST_BINCRS_SIZE_HEADER 44 |
| The header consumes 44 bytes. More... | |
| #define | GHOST_BINCRS_SIZE_RPT_EL 8 |
| One rpt element is 8 bytes. More... | |
| #define | GHOST_BINCRS_SIZE_COL_EL 8 |
| One col element is 8 bytes. More... | |
| #define | GHOST_BINCRS_LITTLE_ENDIAN 0 |
| Indicates that the file is stored in little endianess. More... | |
| #define | GHOST_BINCRS_SYMM_GENERAL GHOST_SPARSEMAT_SYMM_GENERAL |
| #define | GHOST_BINCRS_SYMM_SYMMETRIC GHOST_SPARSEMAT_SYMM_SYMMETRIC |
| #define | GHOST_BINCRS_SYMM_SKEW_SYMMETRIC GHOST_SPARSEMAT_SYMM_SKEW_SYMMETRIC |
| #define | GHOST_BINCRS_SYMM_HERMITIAN GHOST_SPARSEMAT_SYMM_HERMITIAN |
| #define | GHOST_BINCRS_DT_FLOAT GHOST_DT_FLOAT |
| #define | GHOST_BINCRS_DT_DOUBLE GHOST_DT_DOUBLE |
| #define | GHOST_BINCRS_DT_REAL GHOST_DT_REAL |
| #define | GHOST_BINCRS_DT_COMPLEX GHOST_DT_COMPLEX |
| #define | GHOST_SPARSEMAT_ROWFUNC_BINCRS_ROW_GETDIM -4 |
Functions | |
| 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 *path) |
Types and functions for reading binary CRS files.
| #define GHOST_BINCRS_DT_COMPLEX GHOST_DT_COMPLEX |
| #define GHOST_BINCRS_DT_DOUBLE GHOST_DT_DOUBLE |
| #define GHOST_BINCRS_DT_FLOAT GHOST_DT_FLOAT |
| #define GHOST_BINCRS_DT_REAL GHOST_DT_REAL |
| #define GHOST_BINCRS_LITTLE_ENDIAN 0 |
Indicates that the file is stored in little endianess.
| #define GHOST_BINCRS_SIZE_COL_EL 8 |
One col element is 8 bytes.
| #define GHOST_BINCRS_SIZE_HEADER 44 |
The header consumes 44 bytes.
| #define GHOST_BINCRS_SIZE_RPT_EL 8 |
One rpt element is 8 bytes.
| #define GHOST_BINCRS_SYMM_GENERAL GHOST_SPARSEMAT_SYMM_GENERAL |
| #define GHOST_BINCRS_SYMM_HERMITIAN GHOST_SPARSEMAT_SYMM_HERMITIAN |
| #define GHOST_BINCRS_SYMM_SKEW_SYMMETRIC GHOST_SPARSEMAT_SYMM_SKEW_SYMMETRIC |
| #define GHOST_BINCRS_SYMM_SYMMETRIC GHOST_SPARSEMAT_SYMM_SYMMETRIC |
| #define GHOST_SPARSEMAT_ROWFUNC_BINCRS_ROW_GETDIM -4 |
| ghost_error ghost_bincrs_header_read | ( | ghost_bincrs_header_t * | header, |
| char * | path | ||
| ) |

| 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