title: maximum previous in numpy
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/7251421/running-maximum-of-numpy-array-values">Running maximum of numpy array values</a>  </p>
  </blockquote>
  
  
  
  <p>I'm looking for a maximum function in numpy that do something like :</p>
  
  <pre><code>a  = array([0.2,0.3,0.25,0.5,0.2,0.8])
  maxi(a)
  ---&gt; [0.2,0.3,0.3,0.5,0.5,0.8]
  </code></pre>
  
  <p>thanks</p>