pub unsafe extern "C" fn cusparseCreateCsc(
spMatDescr: *mut cusparseSpMatDescr_t,
rows: i64,
cols: i64,
nnz: i64,
cscColOffsets: *mut c_void,
cscRowInd: *mut c_void,
cscValues: *mut c_void,
cscColOffsetsType: cusparseIndexType_t,
cscRowIndType: cusparseIndexType_t,
idxBase: cusparseIndexBase_t,
valueType: cudaDataType,
) -> cusparseStatus_tExpand description
This function initializes the sparse matrix descriptor spMatDescr in the CSC format.
cusparseCreateCsc has the following constraints:
cscColOffsets,cscRowInd, andcscValuesmust be aligned to the size of the datatypes specified bycscColOffsetsType,cscRowIndType, andvalueType, respectively. See cudaDataType_t for the description of the datatypes.
ยงParameters
spMatDescr: Sparse matrix descriptor.rows: Number of rows of the sparse matrix.cols: Number of columns of the sparse matrix.nnz: Number of non-zero entries of the sparse matrix.cscColOffsets: Column offsets of the sparse matrix. Array withcols + 1elements.cscRowInd: Row indices of the sparse matrix. Array withnnzelements.cscValues: Values of the sparse matrix. Array withnnzelements.cscColOffsetsType: Data type ofcscColOffsets.cscRowIndType: Data type ofcscRowInd.idxBase: Index base ofcscColOffsetsandcscRowInd.valueType: Datatype ofcscValues.