In the Repa package there are stencils that allow values to be calculated from neighbouring values in a convenient way (useful for convolutions, image blurring, diffusion simulations etc).
In the current Repa package I can make stencils with any shape, but only two-dimensional stencils can be applied using mapStencil2
. Is there a way to apply stencils to arrays with a different dimension? There isn't even a way to apply one-dimensional stencils. I am looking for a way to apply three-dimensional stencils.
Thanks