title: Enlarging array and filling with value?
body: <p>What is the best way to enlarge a numpy 1D array and fill the new space with the last value.</p>
  <p>F.e.</p>
  <pre><code> a = [1,2,3]
   ... enlarge ..to size 5 ...
   a = [1,2,3,3,3]
  </code></pre>
  <hr />
  <pre><code>    vals = list(seq)
      vals.extend( [seq[-1]] * diff )
      seq = np.array(vals )
  </code></pre>