Skip to content
API REFERENCEUsage guides →

cellpack::store::Csr ​

struct

Module contract · All interfaces

At a glance ​

pub struct Csr {
    pub indptr: Vec<u64>,
    pub indices: Vec<u32>,
    pub data: Vec<u8>,
}

Owned CSR rows with ascending source column ids within each row. Values are little-endian bytes interpreted with CpkFile::dtype; this object does not carry a separate dtype or shape descriptor.

Fields and variants ​

indptr ​

indptr: Vec<u64>

Row offsets starting at zero; one more entry than the output row count.

indices ​

indices: Vec<u32>

Source column ids, one per stored output value.

data ​

data: Vec<u8>

Value bytes: indices.len() * file.dtype().width() bytes.

Implemented traits ​

impl Clone for Csr
impl Debug for Csr
impl Default for Csr
impl PartialEq for Csr

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