Returns a copy of the column at the specified index.
(&self, pos: usize)
| 739 | |
| 740 | /// Returns a copy of the column at the specified index. |
| 741 | pub fn column(&self, pos: usize) -> Option<Vec<T>> { |
| 742 | |
| 743 | if pos >= self.cols() { |
| 744 | return None; |
| 745 | } |
| 746 | Some(self.row_iter().map(|r| r[pos].clone()).collect::<Vec<T>>()) |
| 747 | } |
| 748 | |
| 749 | pub fn rm_column(&self, pos: usize) -> Option<Matrix<T>> { |
| 750 |
no test coverage detected