(&self, f: F, other: &Self)
| 56 | } |
| 57 | |
| 58 | fn zip_with<F>(&self, f: F, other: &Self) -> Self |
| 59 | where |
| 60 | F: Fn(Self::Scalar, Self::Scalar) -> Self::Scalar, |
| 61 | { |
| 62 | self.iter() |
| 63 | .zip(other.iter()) |
| 64 | .map(|(&x, &y)| f(x, y)) |
| 65 | .collect() |
| 66 | } |
| 67 | |
| 68 | fn reduce<F, T>(&self, init: T, f: F) -> Self::Scalar |
| 69 | where |