18#if AF_API_VERSION >= 34 
   44#if AF_API_VERSION >= 34 
   70                       const void* 
const values,
 
   71                       const int * 
const rowIdx, 
const int * 
const colIdx,
 
   76#if AF_API_VERSION >= 34 
   91#if AF_API_VERSION >= 34 
  102#if AF_API_VERSION >= 34 
  114#if AF_API_VERSION >= 34 
  128#if AF_API_VERSION >= 34 
  138#if AF_API_VERSION >= 34 
  148#if AF_API_VERSION >= 34 
  158#if AF_API_VERSION >= 34 
  168#if AF_API_VERSION >= 34 
  184#if AF_API_VERSION >= 34 
  212#if AF_API_VERSION >= 34 
  240                 const void * 
const values,
 
  241                 const int * 
const rowIdx, 
const int * 
const colIdx,
 
  246#if AF_API_VERSION >= 34 
  263#if AF_API_VERSION >= 34 
  277#if AF_API_VERSION >= 34 
  289#if AF_API_VERSION >= 34 
  305#if AF_API_VERSION >= 34 
  317#if AF_API_VERSION >= 34 
  329#if AF_API_VERSION >= 34 
  341#if AF_API_VERSION >= 34 
  353#if AF_API_VERSION >= 34 
A multi dimensional data container.
@ f32
32-bit floating point values
@ AF_STORAGE_CSR
Storage type is CSR.
af_err af_sparse_get_col_idx(af_array *out, const af_array in)
array sparseGetColIdx(const array in)
array sparseConvertTo(const array in, const af::storage destStrorage)
af_err af_sparse_convert_to(af_array *out, const af_array in, const af_storage destStorage)
af_err af_create_sparse_array_from_dense(af_array *out, const af_array dense, const af_storage stype)
This function converts a dense af_array into a sparse array.
af_err af_create_sparse_array_from_ptr(af_array *out, const dim_t nRows, const dim_t nCols, const dim_t nNZ, const void *const values, const int *const rowIdx, const int *const colIdx, const af_dtype type, const af_storage stype, const af_source src)
This function converts host or device arrays of values, row indices and column indices into a sparse ...
array sparse(const dim_t nRows, const dim_t nCols, const array values, const array rowIdx, const array colIdx, const af::storage stype=AF_STORAGE_CSR)
This function converts array of values, row indices and column indices into a sparse array.
af_err af_create_sparse_array(af_array *out, const dim_t nRows, const dim_t nCols, const af_array values, const af_array rowIdx, const af_array colIdx, const af_storage stype)
This function converts array of values, row indices and column indices into a sparse array.
af_err af_sparse_to_dense(af_array *out, const af_array sparse)
array dense(const array sparse)
void sparseGetInfo(array &values, array &rowIdx, array &colIdx, af::storage &stype, const array in)
af_err af_sparse_get_info(af_array *values, af_array *rowIdx, af_array *colIdx, af_storage *stype, const af_array in)
af_err af_sparse_get_nnz(dim_t *out, const af_array in)
dim_t sparseGetNNZ(const array in)
array sparseGetRowIdx(const array in)
af_err af_sparse_get_row_idx(af_array *out, const af_array in)
af::storage sparseGetStorage(const array in)
af_err af_sparse_get_storage(af_storage *out, const af_array in)
array sparseGetValues(const array in)
af_err af_sparse_get_values(af_array *out, const af_array in)