Skip to content
API REFERENCEUsage guides →

cellpack::format::cpk::SourceLayout ​

enum

Module contract · All interfaces

At a glance ​

pub enum SourceLayout {
    Csr,
    Dense,
}

The form a matrix arrived in.

Recorded for the caller’s benefit; every record still picks its own layout.

Fields and variants ​

Csr ​

Csr

CSR input: indices and values per row, sorted by column.

Dense ​

Dense

Dense input: n_cols values per row.

Implemented traits ​

Contract reference ​

See the module reference for semantic input/output rules, units, allocation, mutation, failure behavior, and lifetime requirements. Declarations and documented members are synchronized from the crate source.

Definition