I'm working with convolutional neural networks and I have written a code to make the convolution of two 3x3 matrices. This is my code: https://www.edaplayground.com/x/6G7h Now I want to make the convolution of two matrices: 400x400 and 3x3. That is 160,000 elements x 9 elements, I think that's a lot.
So I would like to ask you guys, what's the most optimized way to do this?
Thanks in advance.