title: Zero pad numpy array
body: <p>What's the more pythonic way to pad an array with zeros at the end?</p>
  
  <pre><code>def pad(A, length):
      ...
  
  A = np.array([1,2,3,4,5])
  pad(A, 8)    # expected : [1,2,3,4,5,0,0,0]
  </code></pre>
  
  <hr>
  
  <p>In my real use case, in fact I want to pad an array to the closest multiple of 1024.  Ex: 1342 => 2048,  3000 => 3072</p>