GHOST  1.1.2
General, Hybrid, and Optimized Sparse Toolkit
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Classes | Macros | Typedefs | Enumerations | Variables
sparsemat_src.h File Reference

GHOST sparsemat sources. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ghost_sparsemat_src_rowfunc
 Defines a rowfunc-based sparsemat source. More...
 

Macros

#define GHOST_SPARSEMAT_ROWFUNC_INIT   -99
 
#define GHOST_SPARSEMAT_ROWFUNC_FINALIZE   -100
 

Typedefs

typedef int(* ghost_sparsemat_rowfunc )(ghost_gidx row, ghost_lidx *nnz, ghost_gidx *col, void *val, void *arg)
 Callback function to construct a ghost_sparsemat. More...
 
typedef int(* ghost_sparsemat_rowfunc_constructor )(void *arg, void **work)
 

Enumerations

enum  ghost_sparsemat_rowfunc_flags { GHOST_SPARSEMAT_ROWFUNC_DEFAULT = 0 }
 Flags to be passed to a row-wise matrix assembly function. More...
 

Variables

const ghost_sparsemat_src_rowfunc GHOST_SPARSEMAT_SRC_ROWFUNC_INITIALIZER
 

Detailed Description

GHOST sparsemat sources.

Author
Moritz Kreutzer morit.nosp@m.z.kr.nosp@m.eutze.nosp@m.r@fa.nosp@m.u.de

Macro Definition Documentation

#define GHOST_SPARSEMAT_ROWFUNC_FINALIZE   -100
#define GHOST_SPARSEMAT_ROWFUNC_INIT   -99

Typedef Documentation

typedef int(* ghost_sparsemat_rowfunc)(ghost_gidx row, ghost_lidx *nnz, ghost_gidx *col, void *val, void *arg)

Callback function to construct a ghost_sparsemat.

Parameters
[in]rowThe global row index.
[out]nnzThe number of values in this row.
[out]valThe values in the specified row.
[out]colThe column indices of the given values.
[in,out]argAdditional arguments.
Returns
typedef int(* ghost_sparsemat_rowfunc_constructor)(void *arg, void **work)

Enumeration Type Documentation

Flags to be passed to a row-wise matrix assembly function.

Enumerator
GHOST_SPARSEMAT_ROWFUNC_DEFAULT 

Default behaviour.

Variable Documentation

const ghost_sparsemat_src_rowfunc GHOST_SPARSEMAT_SRC_ROWFUNC_INITIALIZER