Back to Eqiora docs Skip to main content

CompleteCsrStorage

Trait CompleteCsrStorage 

pub trait CompleteCsrStorage {
    // Required methods
    fn rows(&self) -> usize;
    fn columns(&self) -> usize;
    fn row_offsets(&self) -> &[usize];
    fn column_indices(&self) -> &[usize];
    fn values(&self) -> &[f64];
    fn right_hand_side(&self) -> &[f64];
}
Description

Storage-only projection of one complete sparse linear system.

Implementors expose shape and immutable CSR/RHS storage only. In particular, this trait deliberately has no operator action or identity method: Eqiora captures and validates the data before defining either.

Required Methods§

fn rows(&self) -> usize

Matrix row count.

fn columns(&self) -> usize

Matrix column count.

fn row_offsets(&self) -> &[usize]

CSR row offsets.

fn column_indices(&self) -> &[usize]

CSR column indices.

fn values(&self) -> &[f64]

CSR nonzero values.

fn right_hand_side(&self) -> &[f64]

Complete right-hand side.

Implementors§