sparse.h File Reference

Namespaces | Functions
sparse.h File Reference
`#include <af/defines.h>`

Go to the source code of this file.

## Namespaces
| af

## Functions
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. More...
AFAPI array | sparse (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 dtype type=f32, const af::storage stype=AF_STORAGE_CSR, const af::source src=afHost)
| This function converts host or device arrays of values, row indices and column indices into a sparse array on the device. More...
AFAPI array | sparse (const array dense, const af::storage stype=AF_STORAGE_CSR)
| This function converts a dense af::array into a sparse array. More...
AFAPI array | sparseConvertTo (const array in, const af::storage destStrorage)
AFAPI array | dense (const array sparse)
AFAPI void | sparseGetInfo (array &values, array &rowIdx, array &colIdx, af::storage &stype, const array in)
AFAPI array | sparseGetValues (const array in)
AFAPI array | sparseGetRowIdx (const array in)
AFAPI array | sparseGetColIdx (const array in)
AFAPI dim_t | sparseGetNNZ (const array in)
AFAPI af::storage | sparseGetStorage (const array in)
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. More...
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 array on the device. More...
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. More...
AFAPI af_err | af_sparse_convert_to (af_array *out, const af_array in, const af_storage destStorage)
AFAPI af_err | af_sparse_to_dense (af_array *out, const af_array sparse)
AFAPI af_err | af_sparse_get_info (af_array *values, af_array *rowIdx, af_array *colIdx, af_storage *stype, const af_array in)
AFAPI af_err | af_sparse_get_values (af_array *out, const af_array in)
AFAPI af_err | af_sparse_get_row_idx (af_array *out, const af_array in)
AFAPI af_err | af_sparse_get_col_idx (af_array *out, const af_array in)
AFAPI af_err | af_sparse_get_nnz (dim_t *out, const af_array in)
AFAPI af_err | af_sparse_get_storage (af_storage *out, const af_array in)