Skip to main content

Matrix

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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

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§