GHOST  1.1.2
General, Hybrid, and Optimized Sparse Toolkit
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
sparsemat_src.h
Go to the documentation of this file.
1 
6 #ifndef GHOST_SPARSEMAT_SRC_H
7 #define GHOST_SPARSEMAT_SRC_H
8 
20 typedef int (*ghost_sparsemat_rowfunc)(ghost_gidx row, ghost_lidx *nnz, ghost_gidx *col, void *val, void *arg);
21 typedef int (*ghost_sparsemat_rowfunc_constructor) (void *arg, void **work);
22 
26 typedef enum {
32 
36 typedef struct {
49  int base;
56  void *arg;
62 
63 
65 
66 
67 #define GHOST_SPARSEMAT_ROWFUNC_INIT -99
68 #define GHOST_SPARSEMAT_ROWFUNC_FINALIZE -100
69 
70 #endif
ghost_lidx maxrowlen
Maximum row length of the matrix.
Definition: sparsemat_src.h:45
int(* ghost_sparsemat_rowfunc_constructor)(void *arg, void **work)
Definition: sparsemat_src.h:21
int32_t ghost_gidx
Type for global indices.
Definition: types.h:443
ghost_gidx gncols
Definition: sparsemat_src.h:55
Default behaviour.
Definition: sparsemat_src.h:30
int32_t ghost_lidx
Definition: types.h:503
int base
0 for C, 1 for Fortran-like indexing.
Definition: sparsemat_src.h:49
Defines a rowfunc-based sparsemat source.
Definition: sparsemat_src.h:36
ghost_sparsemat_rowfunc_flags
Flags to be passed to a row-wise matrix assembly function.
Definition: sparsemat_src.h:26
void * arg
Definition: sparsemat_src.h:56
int(* ghost_sparsemat_rowfunc)(ghost_gidx row, ghost_lidx *nnz, ghost_gidx *col, void *val, void *arg)
Callback function to construct a ghost_sparsemat.
Definition: sparsemat_src.h:20
const ghost_sparsemat_src_rowfunc GHOST_SPARSEMAT_SRC_ROWFUNC_INITIALIZER
Definition: sparsemat.c:20
ghost_sparsemat_rowfunc_constructor funcinit
Definition: sparsemat_src.h:60
ghost_sparsemat_rowfunc func
The callback function which assembled the matrix row-wise.
Definition: sparsemat_src.h:41
ghost_gidx gnrows
Definition: sparsemat_src.h:54
ghost_sparsemat_rowfunc_flags flags
Flags to the row function.
Definition: sparsemat_src.h:53