18 #if AF_API_VERSION >= 34 42 #if AF_API_VERSION >= 34 66 const void*
const values,
67 const int *
const rowIdx,
const int *
const colIdx,
72 #if AF_API_VERSION >= 34 85 #if AF_API_VERSION >= 34 96 #if AF_API_VERSION >= 34 106 #if AF_API_VERSION >= 34 120 #if AF_API_VERSION >= 34 130 #if AF_API_VERSION >= 34 140 #if AF_API_VERSION >= 34 150 #if AF_API_VERSION >= 34 160 #if AF_API_VERSION >= 34 176 #if AF_API_VERSION >= 34 204 #if AF_API_VERSION >= 34 232 const void *
const values,
233 const int *
const rowIdx,
const int *
const colIdx,
238 #if AF_API_VERSION >= 34 255 #if AF_API_VERSION >= 34 269 #if AF_API_VERSION >= 34 281 #if AF_API_VERSION >= 34 297 #if AF_API_VERSION >= 34 309 #if AF_API_VERSION >= 34 321 #if AF_API_VERSION >= 34 333 #if AF_API_VERSION >= 34 345 #if AF_API_VERSION >= 34 AFAPI af_err af_sparse_get_row_idx(af_array *out, const af_array in)
AFAPI array sparseConvertTo(const array in, const af::storage destStrorage)
AFAPI af_err af_sparse_get_nnz(dim_t *out, const af_array in)
Definition: algorithm.h:14
AFAPI af::storage sparseGetStorage(const array in)
AFAPI af_err af_sparse_to_dense(af_array *out, const af_array sparse)
AFAPI 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 af::array of values, row indices and column indices into a sparse array...
AFAPI af_err af_sparse_convert_to(af_array *out, const af_array in, const af_storage destStorage)
AFAPI 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.
AFAPI array dense(const array sparse)
AFAPI 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 af::array of values, row indices and column indices into a sparse array...
af_storage
Definition: defines.h:457
AFAPI af_err af_sparse_get_col_idx(af_array *out, const af_array in)
af_err
Definition: defines.h:63
AFAPI 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 ...
af_source
Definition: defines.h:214
Storage type is CSR.
Definition: defines.h:459
AFAPI dim_t sparseGetNNZ(const array in)
long long dim_t
Definition: defines.h:50
AFAPI array sparseGetRowIdx(const array in)
#define AFAPI
Definition: defines.h:31
AFAPI af_err af_sparse_get_values(af_array *out, const af_array in)
AFAPI array sparseGetValues(const array in)
AFAPI void sparseGetInfo(array &values, array &rowIdx, array &colIdx, af::storage &stype, const array in)
static af::array array(af::dim4 idims, cl_mem buf, af::dtype type, bool retain=false)
Create an af::array object from an OpenCL cl_mem buffer.
Definition: opencl.h:327
AFAPI af_err af_sparse_get_info(af_array *values, af_array *rowIdx, af_array *colIdx, af_storage *stype, const af_array in)
AFAPI array sparseGetColIdx(const array in)
AFAPI af_err af_sparse_get_storage(af_storage *out, const af_array in)
void * af_array
Definition: defines.h:222
32-bit floating point values
Definition: defines.h:196
Host pointer.
Definition: defines.h:216
af_dtype
Definition: defines.h:195
af_dtype dtype
Definition: defines.h:468