Skip to main content

cusparseCscGet

Function cusparseCscGet 

Source
pub unsafe extern "C" fn cusparseCscGet(
    spMatDescr: cusparseSpMatDescr_t,
    rows: *mut i64,
    cols: *mut i64,
    nnz: *mut i64,
    cscColOffsets: *mut *mut c_void,
    cscRowInd: *mut *mut c_void,
    cscValues: *mut *mut c_void,
    cscColOffsetsType: *mut cusparseIndexType_t,
    cscRowIndType: *mut cusparseIndexType_t,
    idxBase: *mut cusparseIndexBase_t,
    valueType: *mut cudaDataType,
) -> cusparseStatus_t
Expand description

This function returns the fields of the sparse matrix descriptor spMatDescr stored in CSC format.

ยง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: Col offsets of the sparse matrix. Array with cols + 1 elements.
  • cscRowInd: Row indices of the sparse matrix. Array with nnz elements.
  • cscValues: Values of the sparse matrix. Array with nnz elements.
  • cscColOffsetsType: Data type of cscColOffsets.
  • cscRowIndType: Data type of cscRowInd.
  • idxBase: Index base of cscColOffsets and cscRowInd.
  • valueType: Datatype of cscValues.