Skip to main content

cusparseCreateBlockedEll

Function cusparseCreateBlockedEll 

Source
pub unsafe extern "C" fn cusparseCreateBlockedEll(
    spMatDescr: *mut cusparseSpMatDescr_t,
    rows: i64,
    cols: i64,
    ellBlockSize: i64,
    ellCols: i64,
    ellColInd: *mut c_void,
    ellValue: *mut c_void,
    ellIdxType: cusparseIndexType_t,
    idxBase: cusparseIndexBase_t,
    valueType: cudaDataType,
) -> cusparseStatus_t
Expand description

This function initializes the sparse matrix descriptor spMatDescr for the Blocked-Ellpack (ELL) format.

Blocked-ELL Column indices (ellColInd) are in the range [0, cols / ellBlockSize -1]. The array can contain -1 values for indicating empty blocks.

ยงParameters

  • spMatDescr: Sparse matrix descriptor.
  • rows: Number of rows of the sparse matrix.
  • cols: Number of columns of the sparse matrix.
  • ellBlockSize: Size of the ELL-Block.
  • ellCols: Actual number of columns of the Blocked-Ellpack format (ellValue columns).
  • ellColInd: Blocked-ELL Column indices. Array with [ellCols / ellBlockSize][rows / ellBlockSize] elements.
  • ellValue: Values of the sparse matrix. Array with rows * ellCols elements.
  • ellIdxType: Data type of ellColInd.
  • idxBase: Index base of ellColInd.
  • valueType: Data type of ellValue.