|
static const char * | ghost_sparsemat_formatName (ghost_sparsemat *mat) |
|
static ghost_error | ghost_sparsemat_split (ghost_sparsemat *mat) |
|
static ghost_error | ghost_set_kacz_ratio (ghost_context *ctx, ghost_sparsemat *mat) |
|
ghost_error | ghost_sparsemat_create (ghost_sparsemat **mat, ghost_context *context, ghost_sparsemat_traits *traits, int nTraits) |
| Create a sparse matrix. More...
|
|
static ghost_error | ghost_sparsemat_sortrow (ghost_gidx *col, char *val, size_t valSize, ghost_lidx rowlen, ghost_lidx stride, ghost_lidx row, bool diagfirst) |
| Sort the entries in a given row physically to have increasing column indices. More...
|
|
static ghost_error | ghost_calculate_bw (ghost_context *ctx, ghost_sparsemat *mat) |
|
ghost_error | ghost_sparsemat_perm_global_cols (ghost_gidx *col, ghost_lidx ncols, ghost_context *context) |
|
ghost_error | ghost_sparsemat_nrows (ghost_gidx *nrows, ghost_sparsemat *mat) |
| Obtain the global number of rows of a sparse matrix. More...
|
|
ghost_error | ghost_sparsemat_nnz (ghost_gidx *nnz, ghost_sparsemat *mat) |
| Obtain the global number of nonzero elements of a sparse matrix. More...
|
|
ghost_error | ghost_sparsemat_info_string (char **str, ghost_sparsemat *mat) |
| Create a string holding information about the sparsemat. More...
|
|
ghost_error | ghost_sparsematofile_header (ghost_sparsemat *mat, char *path) |
| Write the sparse matrix header to a binary CRS file. More...
|
|
bool | ghost_sparsemat_symmetry_valid (ghost_sparsemat_symmetry symmetry) |
| Check if the symmetry information of a sparse matrix is valid. More...
|
|
const char * | ghost_sparsemat_symmetry_string (ghost_sparsemat_symmetry symmetry) |
| Convert the matrix' symmetry information to a string. More...
|
|
void | ghost_sparsemat_destroy (ghost_sparsemat *mat) |
| Destroy a sparsemat and free all memory. More...
|
|
ghost_error | ghost_sparsemat_init_bin (ghost_sparsemat *mat, char *path, ghost_mpi_comm mpicomm, double weight) |
| Initializes a sparsemat from a binary CRS file. More...
|
|
ghost_error | ghost_sparsemat_init_mm (ghost_sparsemat *mat, char *path, ghost_mpi_comm mpicomm, double weight) |
| Initializes a sparsemat from a Matrix Market file. More...
|
|
int | ghost_sparsemat_rowfunc_crs (ghost_gidx row, ghost_lidx *rowlen, ghost_gidx *col, void *val, void *arg) |
|
ghost_error | ghost_sparsemat_init_crs (ghost_sparsemat *mat, ghost_gidx offs, ghost_lidx n, ghost_gidx *col, void *val, ghost_lidx *rpt, ghost_mpi_comm mpicomm, double weight) |
| Initializes a sparsemat from local CRS data. More...
|
|
size_t | ghost_sparsemat_bytesize (ghost_sparsemat *mat) |
| Get the entire memory footprint of the matrix. More...
|
|
static ghost_error | initHaloAvg (ghost_sparsemat *mat) |
|
ghost_error | ghost_sparsemat_init_rowfunc (ghost_sparsemat *mat, ghost_sparsemat_src_rowfunc *src, ghost_mpi_comm mpicomm, double weight) |
| Initializes a sparsemat from a row-based callback function. More...
|
|
ghost_error | ghost_sparsemat_to_bin (ghost_sparsemat *mat, char *matrixPath) |
| Write a matrix to a binary CRS file. More...
|
|