On Wed, Sep 23, 2009 at 8:34 AM, Nissim Karpenstein wrote:
> Hi,
>
> I want a cummax function where given an array inp it returns this:
>
> numpy.array([inp[:i].max() for i in xrange(1,len(inp)+1)]).
>
> Various python versions equivalent to the above are quite slow (though a
> single python loop
Hi,
I want a cummax function where given an array inp it returns this:
numpy.array([inp[:i].max() for i in xrange(1,len(inp)+1)]).
Various python versions equivalent to the above are quite slow (though a
single python loop is much faster than a python loop with a nested numpy C
loop as shown abo