Lazy zip view of elements packed with sum of their neighbours.
neighbours accumulation function.
import mir.ndslice.allocation: slice; import mir.algorithm.iteration: all; auto wn = [4, 5].iota.withNeighboursSum; assert(wn.all!"a[0] == a[1] * 0.25"); assert(wn.map!"a" == wn.map!"b * 0.25");
slide, slideAlong.
See Implementation
Lazy zip view of elements packed with sum of their neighbours.