pub fn map1<A: Copy, U>(
shape: &[usize],
a: View<'_, A>,
out: &mut [U],
f: impl Fn(A) -> U,
)Expand description
Applies f element-wise: out[i] = f(a[i]) in row-major order of shape.
ยงPanics
If out.len() is not the element count of shape, or a view indexes outside its data.
Both are caller bugs: nuvec-core validates shapes and layouts beforehand.