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]outaf_array for the sparse array with the given storage type
[in]inis the source sparse matrix to be converted
[in]destStorageis the storage format of the output sparse array
Returns
AF_SUCCESS if the execution completes properly
Parameters
[in]inis the source sparse matrix to be converted
[in]destStrorageis the storage format of the output sparse array
Returns
af::array for the sparse array with the given storage type