(&mut self, f: F)
| 1703 | } |
| 1704 | |
| 1705 | fn col_mut_map<F>(&mut self, f: F) |
| 1706 | where |
| 1707 | F: Fn(Vec<C64>) -> Vec<C64>, |
| 1708 | { |
| 1709 | for i in 0..self.col { |
| 1710 | unsafe { |
| 1711 | let mut p = self.col_mut(i); |
| 1712 | let fv = f(self.col(i)); |
| 1713 | for j in 0..p.len() { |
| 1714 | *p[j] = fv[j]; |
| 1715 | } |
| 1716 | } |
| 1717 | } |
| 1718 | } |
| 1719 | |
| 1720 | fn row_mut_map<F>(&mut self, f: F) |
| 1721 | where |