Skip to main content

cusparseCreateDnVec

Function cusparseCreateDnVec 

Source
pub unsafe extern "C" fn cusparseCreateDnVec(
    dnVecDescr: *mut cusparseDnVecDescr_t,
    size: i64,
    values: *mut c_void,
    valueType: cudaDataType,
) -> cusparseStatus_t
Expand description

This function initializes the dense vector descriptor dnVecDescr.

cusparseCreateDnVec has the following constraints:

  • values must be aligned to the size of the datatype specified by valueType. Refer to cudaDataType_t for the description of the datatypes.

ยงParameters

  • dnVecDescr: Dense vector descriptor.
  • size: Size of the dense vector.
  • values: Values of the dense vector. Array with size elements.
  • valueType: Enumerator specifying the datatype of values.