Returns the number of columns 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.cols(), 3); # } ```
(&self)
| 390 | /// # } |
| 391 | /// ``` |
| 392 | pub fn cols (&self) -> usize { self.ncols } |
| 393 | |
| 394 | /// Returns an iterator over all elements of the matrix in row-major order. |
| 395 | /// |
no outgoing calls
no test coverage detected