MCPcopy Create free account
hub / github.com/daniel-e/rustml / rows

Method rows

src/matrix.rs:376–376  ·  view source on GitHub ↗

Returns the number of rows of the matrix. ``` # #[macro_use] extern crate rustml; use rustml::*; # fn main() { let m = mat![ 1.0, 1.5, 1.8; 2.0, 2.5, 2.8 ]; assert_eq!(m.rows(), 2); # } ```

(&self)

Source from the content-addressed store, hash-verified

374 /// # }
375 /// ```
376 pub fn rows (&self) -> usize { self.nrows }
377
378 /// Returns the number of columns of the matrix.
379 ///

Callers 15

mul_vec_minus_vecMethod · 0.80
mul_dgemvMethod · 0.80
mul_scalar_vecMethod · 0.80
d_gemmFunction · 0.80
d_gemvFunction · 0.80
s_gemmFunction · 0.80
s_gemvFunction · 0.80
fromMethod · 0.80
from_fileMethod · 0.80
emptyMethod · 0.80
idxMethod · 0.80
add_rowMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected