pub fn map2<A: Copy, B: Copy, U>( shape: &[usize], a: View<'_, A>, b: View<'_, B>, out: &mut [U], f: impl Fn(A, B) -> U, )
Applies f element-wise: out[i] = f(a[i], b[i]) in row-major order of shape.
f
out[i] = f(a[i], b[i])
shape
As map1.
map1