Skip to content

CSR/CSC: Provide constructor for unsorted but otherwise valid data #879

Open
@Andlon

Description

@Andlon

The main constructor from existing CSR/CSC data is e.g. try_from_csr_data. However, this deliberately rejects unsorted input. However, if the only issue with the data is that the column indices are not sorted, then this is fixable. We should provide a similarly named try_from_unsorted_csr_data which would sort the column indices when needed. Similarly for CscMatrix, as well as an analogous constructor for SparsityPattern.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions