Functions | |
AFAPI array | sparseConvertTo (const array in, const af::storage destStrorage) |
AFAPI af_err | af_sparse_convert_to (af_array *out, const af_array in, const af_storage destStorage) |
Convert an existing sparse array into a different storage format
Converting storage formats is allowed between AF_STORAGE_CSR, AF_STORAGE_COO and AF_STORAGE_DENSE.
When converting to AF_STORAGE_DENSE, a dense array is returned.
AFAPI af_err af_sparse_convert_to | ( | af_array * | out, |
const af_array | in, | ||
const af_storage | destStorage ) |
[out] | out | af_array for the sparse array with the given storage type |
[in] | in | is the source sparse matrix to be converted |
[in] | destStorage | is the storage format of the output sparse array |