pub trait SparseOps {
// Required methods
fn spmv(
&self,
alpha: f32,
x: &[f32],
beta: f32,
y: &mut [f32],
) -> Result<(), SparseError>;
fn spmm(
&self,
alpha: f32,
b: &[f32],
b_cols: usize,
beta: f32,
c: &mut [f32],
) -> Result<(), SparseError>;
}Expand description
Sparse matrix operations trait.
Provides SpMV and SpMM with provable error bounds.