pub unsafe extern "C" fn cusparseCreateSpVec(
spVecDescr: *mut cusparseSpVecDescr_t,
size: i64,
nnz: i64,
indices: *mut c_void,
values: *mut c_void,
idxType: cusparseIndexType_t,
idxBase: cusparseIndexBase_t,
valueType: cudaDataType,
) -> cusparseStatus_tExpand description
This function initializes the sparse matrix descriptor spVecDescr.
cusparseCreateSpVec has the following constraints:
indicesandvaluesmust be aligned to the size of the datatypes specified byidxTypeandvalueType, respectively. SeecudaDataType_tfor the description of the datatypes.
ยงParameters
spVecDescr: Sparse vector descriptor.size: Size of the sparse vector.nnz: Number of non-zero entries of the sparse vector.indices: Indices of the sparse vector. Array withnnzelements.values: Values of the sparse vector. Array withnnzelements.idxType: Enumerator specifying the data type ofindices.idxBase: Enumerator specifying the index base ofindices.valueType: Enumerator specifying the datatype ofvalues.