clSPARSE  v0.10.0.0
a software library containing Sparse functions written in OpenCL
Functions
Routines to initialize a clsparse object

Initialize a clsparse data structure to default values. More...

Functions

CLSPARSE_EXPORT clsparseStatus clsparseInitScalar (clsparseScalar *scalar)
 Initialize a scalar structure to be used in the clsparse library. More...
 
CLSPARSE_EXPORT clsparseStatus clsparseInitVector (cldenseVector *vec)
 Initialize a dense vector structure to be used in the clsparse library. More...
 
CLSPARSE_EXPORT clsparseStatus clsparseInitCooMatrix (clsparseCooMatrix *cooMatx)
 Initialize a sparse matrix COO structure to be used in the clsparse library. More...
 
CLSPARSE_EXPORT clsparseStatus clsparseInitCsrMatrix (clsparseCsrMatrix *csrMatx)
 Initialize a sparse matrix CSR structure to be used in the clsparse library. More...
 
CLSPARSE_EXPORT clsparseStatus cldenseInitMatrix (cldenseMatrix *denseMatx)
 Initialize a dense matrix structure to be used in the clsparse library. More...
 

Detailed Description

Initialize a clsparse data structure to default values.

Function Documentation

CLSPARSE_EXPORT clsparseStatus cldenseInitMatrix ( cldenseMatrix denseMatx)

Initialize a dense matrix structure to be used in the clsparse library.

Note
It is users responsibility to allocate OpenCL device memory
Parameters
[out]denseMatxDense matrix structure to be initialized
Returns
clsparseSuccess
CLSPARSE_EXPORT clsparseStatus clsparseInitCooMatrix ( clsparseCooMatrix cooMatx)

Initialize a sparse matrix COO structure to be used in the clsparse library.

Note
It is users responsibility to allocate OpenCL device memory
Parameters
[out]cooMatxSparse COO matrix structure to be initialized
Returns
clsparseSuccess
CLSPARSE_EXPORT clsparseStatus clsparseInitCsrMatrix ( clsparseCsrMatrix csrMatx)

Initialize a sparse matrix CSR structure to be used in the clsparse library.

Note
It is users responsibility to allocate OpenCL device memory
Parameters
[out]csrMatxSparse CSR matrix structure to be initialized
Returns
clsparseSuccess
Examples:
sample-cg.cpp, and sample-spmv.cpp.
CLSPARSE_EXPORT clsparseStatus clsparseInitScalar ( clsparseScalar scalar)

Initialize a scalar structure to be used in the clsparse library.

Note
It is users responsibility to allocate OpenCL device memory
Parameters
[out]scalarScalar structure to be initialized
Returns
clsparseSuccess
Examples:
sample-axpy.cpp, sample-norm1-c.c, and sample-spmv.cpp.
CLSPARSE_EXPORT clsparseStatus clsparseInitVector ( cldenseVector vec)

Initialize a dense vector structure to be used in the clsparse library.

Note
It is users responsibility to allocate OpenCL device memory
Parameters
[out]vecDense vector structure to be initialized
Returns
clsparseSuccess
Examples:
sample-axpy.cpp, sample-cg.cpp, sample-norm1-c.c, and sample-spmv.cpp.