While reviewing the stdlib_sparse_conversion module, I noticed that we currently have native routines to convert COO and CSR matrices back to dense 2D arrays (coo2dense and csr2dense). However, the corresponding csc2dense routine is missing from the API.Currently, if a user has a CSC matrix and needs a dense representation, they are forced to route the data through a temporary COO matrix (CSC -> COO -> dense), which introduces an unnecessary O(NNZ) memory allocation.
While reviewing the stdlib_sparse_conversion module, I noticed that we currently have native routines to convert COO and CSR matrices back to dense 2D arrays (coo2dense and csr2dense). However, the corresponding csc2dense routine is missing from the API.Currently, if a user has a CSC matrix and needs a dense representation, they are forced to route the data through a temporary COO matrix (CSC -> COO -> dense), which introduces an unnecessary O(NNZ) memory allocation.