pub unsafe extern "C" fn cusparseCreateCoo(
spMatDescr: *mut cusparseSpMatDescr_t,
rows: i64,
cols: i64,
nnz: i64,
cooRowInd: *mut c_void,
cooColInd: *mut c_void,
cooValues: *mut c_void,
cooIdxType: cusparseIndexType_t,
idxBase: cusparseIndexBase_t,
valueType: cudaDataType,
) -> cusparseStatus_tExpand description
This function initializes the sparse matrix descriptor spMatDescr in the COO format (Structure of Arrays layout).
cusparseCreateCoo has the following constraints:
cooRowInd,cooColInd, andcooValuesmust be aligned to the size of the datatypes specified bycooIdxType,cooIdxType, andvalueType. respectively. SeecudaDataType_tfor 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.cooRowInd: Row indices of the sparse matrix. Array withnnzelements.cooColInd: Column indices of the sparse matrix. Array withnnzelements.cooValues: Values of the sparse matrix. Array withnnzelements.cooIdxType: Data type ofcooRowIndandcooColInd.idxBase: Index base ofcooRowIndandcooColInd.valueType: Datatype ofcooValues.