(&mut self, f: F)
| 1718 | } |
| 1719 | |
| 1720 | fn row_mut_map<F>(&mut self, f: F) |
| 1721 | where |
| 1722 | F: Fn(Vec<C64>) -> Vec<C64>, |
| 1723 | { |
| 1724 | for i in 0..self.col { |
| 1725 | unsafe { |
| 1726 | let mut p = self.row_mut(i); |
| 1727 | let fv = f(self.row(i)); |
| 1728 | for j in 0..p.len() { |
| 1729 | *p[j] = fv[j]; |
| 1730 | } |
| 1731 | } |
| 1732 | } |
| 1733 | } |
| 1734 | |
| 1735 | fn reduce<F, T>(&self, init: T, f: F) -> C64 |
| 1736 | where |