Returns an iterator over the rows of the matrix. Each call to the `next` method is done in O(1). ``` # #[macro_use] extern crate rustml; use rustml::*; # fn main() { let m = mat![ 1.0, 1.5; 2.0, 2.5; 5.0, 5.5 ]; let mut i = m.row_iter(); assert_eq!(i.next().unwrap(), [1.0, 1.5]); assert_eq!(i.next().unwrap(), [2.0, 2.5]); assert_eq!(i.next().unwrap(), [5.0, 5.5]); # } ```
(&self)
| 454 | /// # } |
| 455 | /// ``` |
| 456 | pub fn row_iter(&self) -> RowIterator<T> { |
| 457 | self.row_iter_at(0) |
| 458 | } |
| 459 | |
| 460 | /// Returns an iterator over the rows of the matrix. The iterator |
| 461 | /// starts at the the row with index `n`. |
no test coverage detected