fn psum<T>(on: Option<&Support>, n: usize, f: impl Fn(usize) -> T + Sync) -> Twhere T: Copy + Send + Sync + Add<Output = T> + Default,
det_sum of f over a vector of n, or over its voxels in on (the rest zero)
det_sum
f
n
on