Skip to content

Enhancement: Add missing csc2dense conversion routine to complete the dense conversion API #1156

@srinjoy933

Description

@srinjoy933

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions