(&self, init: T, f: F)
| 1733 | } |
| 1734 | |
| 1735 | fn reduce<F, T>(&self, init: T, f: F) -> C64 |
| 1736 | where |
| 1737 | F: Fn(C64, C64) -> C64, |
| 1738 | T: Into<C64>, |
| 1739 | { |
| 1740 | self.data.iter().fold(init.into(), |x, y| f(x, *y)) |
| 1741 | } |
| 1742 | |
| 1743 | fn zip_with<F>(&self, f: F, other: &ComplexMatrix) -> Self |
| 1744 | where |