![]() |
GHOST
1.1.2
General, Hybrid, and Optimized Sparse Toolkit
|
Basic data types and structures. More...
Classes | |
| struct | ghost_densemat |
| A dense vector/matrix. More... | |
| struct | ghost_sparsemat |
| A sparse matrix. More... | |
Functions | |
| ghost_error | ghost_sparsemat_create (ghost_sparsemat **mat, ghost_context *ctx, ghost_sparsemat_traits *traits, int nTraits) |
| Create a sparse matrix. More... | |
Basic data types and structures.
| ghost_error ghost_sparsemat_create | ( | ghost_sparsemat ** | mat, |
| ghost_context * | ctx, | ||
| ghost_sparsemat_traits * | traits, | ||
| int | nTraits | ||
| ) |
Create a sparse matrix.
| [out] | mat | Where to store the matrix |
| [in] | ctx | An existing context or GHOST_CONTEXT_INITIALIZER. |
| [in] | traits | The matrix traits. They can be specified for the full matrix, the local and the remote part. |
| [in] | nTraits | The number of traits. |
traits (GHOST_DT_NONE by default); this is done by the matrix initialization functions to allow for the datatype to be determined from an input file. 
1.8.6