ArrayFire: sparseConvertTo
Convert an existing sparse array into a different storage format. More...
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.
- Note
- AF_STORAGE_CSC is currently not supported.
◆ af_sparse_convert_to()
- Parameters
-
[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
- Returns
- AF_SUCCESS if the execution completes properly
- Parameters
-
[in] in is the source sparse matrix to be converted [in] destStrorage is the storage format of the output sparse array
- Returns
- af::array for the sparse array with the given storage type