GHOST  1.1.2
General, Hybrid, and Optimized Sparse Toolkit
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
Dense matrix creation

Functions to create dense matrices/vectors. More...

Functions

ghost_error ghost_densemat_create (ghost_densemat **vec, ghost_map *map, ghost_densemat_traits traits)
 Create a dense matrix/vector. More...
 

Detailed Description

Functions to create dense matrices/vectors.

Function Documentation

ghost_error ghost_densemat_create ( ghost_densemat **  vec,
ghost_map map,
ghost_densemat_traits  traits 
)

Create a dense matrix/vector.

Parameters
vecWhere to store the matrix.
mapThe map of the matrix. This may be extracted from an existing context or created separately.
traitsThe matrix traits.
Returns
GHOST_SUCCESS on success or an error indicator.
Note
No memory will be allocated in this function. Before any operation with the densemat is done, an initialization function (see Dense matrix initialization) has to be called with the densemat.

Here is the call graph for this function: