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.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".