Initialize a clsparse data structure to default values.
More...
Initialize a clsparse data structure to default values.
Initialize a dense matrix structure to be used in the clsparse library.
- Note
- It is users responsibility to allocate OpenCL device memory
- Parameters
-
[out] | denseMatx | Dense matrix structure to be initialized |
- Returns
- clsparseSuccess
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] | cooMatx | Sparse COO matrix structure to be initialized |
- Returns
- clsparseSuccess
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] | csrMatx | Sparse CSR matrix structure to be initialized |
- Returns
- clsparseSuccess
- Examples:
- sample-cg.cpp, and sample-spmv.cpp.
Initialize a scalar structure to be used in the clsparse library.
- Note
- It is users responsibility to allocate OpenCL device memory
- Parameters
-
[out] | scalar | Scalar structure to be initialized |
- Returns
- clsparseSuccess
- Examples:
- sample-axpy.cpp, sample-norm1-c.c, and sample-spmv.cpp.
Initialize a dense vector structure to be used in the clsparse library.
- Note
- It is users responsibility to allocate OpenCL device memory
- Parameters
-
[out] | vec | Dense vector structure to be initialized |
- Returns
- clsparseSuccess
- Examples:
- sample-axpy.cpp, sample-cg.cpp, sample-norm1-c.c, and sample-spmv.cpp.