albanD:

Then im2col that creates the Teoplitz matrix of the input (https://en.wikipedia.org/wiki/Toeplitz_matrix ).
Then a matrix matrix multiplication between this and the weights.


Wait, how does im2col create a toeplitz matrix of the input ?