Skip to main content

nrows

Function nrows 

Source
pub fn nrows<T>(m: &Matrix<T>) -> usize
Expand description

Get number of rows.

ยงExamples

use tensor4all_tcicore::{from_vec2d, matrix::nrows};

let m = from_vec2d(vec![vec![1.0, 2.0], vec![3.0, 4.0], vec![5.0, 6.0]]);
assert_eq!(nrows(&m), 3);