pub trait MatVec {
type A: Scalar;
// Required methods
fn nrows(&self) -> usize;
fn ncols(&self) -> usize;
fn matvec(&self, mat: ArrayView1<'_, Self::A>) -> Array1<Self::A>;
}
Expand description
Matrix-Vector Product Trait
This trait defines an interface for operators that provide matrix-vector products.