1D and 2D convolution functions in stan

Back in 2020, in this post there might be some answers for you.