BlackBoxMatrix

Trait BlackBoxMatrix 

Source
pub trait BlackBoxMatrix<R>
where R: SemiRing,
{ // Required methods fn apply(&self, v: &[R::T]) -> Vec<R::T>; fn shape(&self) -> (usize, usize); }

Required Methods§

Source

fn apply(&self, v: &[R::T]) -> Vec<R::T>

Source

fn shape(&self) -> (usize, usize)

Implementors§

Source§

impl<R> BlackBoxMatrix<R> for Matrix<R>
where R: SemiRing,

Source§

impl<R> BlackBoxMatrix<R> for SparseMatrix<R>
where R: SemiRing,

Source§

impl<R, F> BlackBoxMatrix<R> for BlackBoxMatrixImpl<R, F>
where R: SemiRing, F: Fn(&[R::T]) -> Vec<R::T>,