Skip to main content

cusparseSpVecGet

Function cusparseSpVecGet 

Source
pub unsafe extern "C" fn cusparseSpVecGet(
    spVecDescr: cusparseSpVecDescr_t,
    size: *mut i64,
    nnz: *mut i64,
    indices: *mut *mut c_void,
    values: *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 vector descriptor spVecDescr.

ยงParameters

  • spVecDescr: Sparse vector descriptor.
  • size: Size of the sparse vector.
  • nnz: Number of non-zero entries of the sparse vector.
  • indices: Indices of the sparse vector. Array with nnz elements.
  • values: Values of the sparse vector. Array with nnz elements.
  • idxType: Enumerator specifying the data type of indices.
  • idxBase: Enumerator specifying the index base of indices.
  • valueType: Enumerator specifying the datatype of values.