Periodic convolution, equivalent to convolution2d from scipy

Hi,
I know the reply comes a bit late, but have a look at ImageFiltering.jl. In particular the function imfilter(matrix, kernel; border="circular") supports a keyword argument border that can be set to (amongst other things) “circular” to achieve what you want.
Despite having the word “Image” in its name, the package works for general nd-arrays.

1 Like