Returns a dense array from a sparse input.
More...
Returns a dense array from a sparse input.
Converts the sparse matrix into a dense matrix and returns it
◆ af_sparse_to_dense()
- Parameters
-
[out] | out | dense af_array from sparse |
[in] | sparse | is the source sparse matrix |
- Returns
- AF_SUCCESS if the execution completes properly
◆ dense()
- Parameters
-
[in] | sparse | is the source sparse matrix |
- Returns
- dense af::array from sparse
A multi dimensional data container.
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.
AFAPI array dense(const array sparse)