Currently, numba stencils only support func_or_mode="constant", i.e., the array’s border is not handled beyond setting a fixed constant value.
I’m wondering if there is a good workaround for this issue? One could of course pad the array with np.pad before applying the stencil, but this creates another copy, and the output shape wont match either.
Or are there any attempts to implement other func_or_mode options?
Thanks!