Skip to main content

cusparseCsrGet

Function cusparseCsrGet 

Source
pub unsafe extern "C" fn cusparseCsrGet(
    spMatDescr: cusparseSpMatDescr_t,
    rows: *mut i64,
    cols: *mut i64,
    nnz: *mut i64,
    csrRowOffsets: *mut *mut c_void,
    csrColInd: *mut *mut c_void,
    csrValues: *mut *mut c_void,
    csrRowOffsetsType: *mut cusparseIndexType_t,
    csrColIndType: *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 CSR 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.
  • csrRowOffsets: Row offsets of the sparse matrix. Array with rows + 1 elements.
  • csrColInd: Column indices of the sparse matrix. Array with nnz elements.
  • csrValues: Values of the sparse matrix. Array with nnz elements.
  • csrRowOffsetsType: Data type of csrRowOffsets.
  • csrColIndType: Data type of csrColInd.
  • idxBase: Index base of csrRowOffsets and csrColInd.
  • valueType: Datatype of csrValues.