Skip to main content

MatTrait

Trait MatTrait 

Source
pub trait MatTrait {
    // Required method
    fn shape(&self) -> (usize, usize);

    // Provided methods
    fn nrows(&self) -> usize { ... }
    fn ncols(&self) -> usize { ... }
    fn is_square(&self) -> bool { ... }
}

Required Methods§

Source

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

Provided Methods§

Source

fn nrows(&self) -> usize

Source

fn ncols(&self) -> usize

Source

fn is_square(&self) -> bool

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<R> MatTrait for Mat<R>

Source§

impl<R> MatTrait for SpMat<R>