Skip to main content

cusparseCooGet

Function cusparseCooGet 

Source
pub unsafe extern "C" fn cusparseCooGet(
    spMatDescr: cusparseSpMatDescr_t,
    rows: *mut i64,
    cols: *mut i64,
    nnz: *mut i64,
    cooRowInd: *mut *mut c_void,
    cooColInd: *mut *mut c_void,
    cooValues: *mut *mut c_void,
    idxType: *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 COO format (Array of Structures layout).

ยง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 nnz elements.
  • cooColInd: Column indices of the sparse matrix. Array nnz elements.
  • cooValues: Values of the sparse matrix. Array nnz elements.
  • idxBase: Index base of cooRowInd and cooColInd.
  • valueType: Datatype of cooValues.