pub unsafe extern "C" fn cusparseCreateSlicedEll(
spMatDescr: *mut cusparseSpMatDescr_t,
rows: i64,
cols: i64,
nnz: i64,
sellValuesSize: i64,
sliceSize: i64,
sellSliceOffsets: *mut c_void,
sellColInd: *mut c_void,
sellValues: *mut c_void,
sellSliceOffsetsType: cusparseIndexType_t,
sellColIndType: cusparseIndexType_t,
idxBase: cusparseIndexBase_t,
valueType: cudaDataType,
) -> cusparseStatus_tExpand description
This function initializes the sparse matrix descriptor spMatDescr for the Sliced Ellpack (SELL) format.
cusparseCreateSlicedEll has the following constraints:
sellSliceOffsets,sellColInd, andsellValuesmust be aligned to the size of the datatypes specified bysellSliceOffsetsType,sellColIndType, 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 nonzero elements in the sparse matrix.sellValuesSize: Total number of elements insellValuesarray (nonzero and padding).sliceSize: The number of rows per slice.sellSliceOffsets: Slice offsets of the sparse matrix. Array of size $\left \lceil{\frac{rows}{sliceSize}}\right \rceil + 1$.sellColInd: Column indexes of the sparse matrix. Array of sizesellValuesSize.sellValues: Values of the sparse matrix. Array of sizesellValuesSizeelements.sellSliceOffsetsType: Data type ofsellSliceOffsets.sellColIndType: Data type ofsellColInd.idxBase: Index base ofsellColInd.valueType: Data type ofsellValues.