title: Theory and step-by-step instruction of scipy.ndimage.convolve
body: <p>Good day to all.</p>
  
  <p>Help me please to understand theory of function scipy.ndimage.convolve for 1D arrays. I know the formula from <a href="http://lagrange.univ-lyon1.fr/docs/scipy/0.17.1/generated/scipy.ndimage.convolve.html" rel="nofollow noreferrer">http://lagrange.univ-lyon1.fr/docs/scipy/0.17.1/generated/scipy.ndimage.convolve.html</a></p>
  
  <pre><code> C_i = \sum_j{I_{i+j-k} W_j},
  </code></pre>
  
  <p>but i can't understand, how can I get results manually. </p>
  
  <p>For example: <code>test_1 = scipy.ndimage.convolve([1, 2, 3], [1, 2, 3, 4, 5])</code></p>
  
  <p>result is <code>[24 24 30]</code></p>
  
  <p>Or <code>test_2 = scipy.ndimage.convolve([1, 2, 3], [3, 4, 5])</code></p>
  
  <p>result is <code>[15 22 31]</code></p>
  
  <hr>
  
  <p>If I write here all attempts that I have made, it will take a lot of space.</p>
  
  <p>Give me please step by step instructions on what to do with these examples manually.</p>