title: How to do convolution matrix operation in numpy?
body: <p>Is there a way to do <a href="https://en.wikipedia.org/wiki/Kernel_(image_processing)" rel="noreferrer">convolution matrix</a> operation using numpy?</p>
  
  <p>The <a href="https://docs.scipy.org/doc/numpy/reference/generated/numpy.convolve.html" rel="noreferrer"><code>numpy.convolve</code></a> only operates on 1D arrays, so this is not the solution.</p>
  
  <p>I rather want to avoid using scipy, since it appears to be more difficult getting installed on Windows.</p>