Trait array_matrix::matrix::Matrix
source · pub trait Matrix: Sized {
fn height(&self) -> usize;
fn length(&self) -> usize;
fn empty() -> Self;
}
Required Methods§
sourcefn height(&self) -> usize
fn height(&self) -> usize
Returns the height of the given matrix
Examples
let a = [
[1.0, 2.0, 3.0],
[4.0, 5.0, 6.0]
];
assert_eq!(a.height(), 2);