matrixcompare_core

Trait Matrix

Source
pub trait Matrix<T> {
    // Required methods
    fn rows(&self) -> usize;
    fn cols(&self) -> usize;
    fn access(&self) -> Access<'_, T>;
}
Expand description

Main interface for access to the elements of a matrix.

Required Methods§

Source

fn rows(&self) -> usize

Source

fn cols(&self) -> usize

Source

fn access(&self) -> Access<'_, T>

Expose dense or sparse access to the matrix.

Implementations on Foreign Types§

Source§

impl<T, X> Matrix<T> for &X
where X: Matrix<T>,

Source§

fn rows(&self) -> usize

Source§

fn cols(&self) -> usize

Source§

fn access(&self) -> Access<'_, T>

Implementors§