[Numpy-discussion] partial_sum/adj_difference?

Nils Wagner nwagner@iam.uni-stuttgart...
Tue Feb 19 15:17:45 CST 2008


On Tue, 19 Feb 2008 13:50:04 -0700
  "Charles R Harris" <charlesr.harris@gmail.com> wrote:
> On Feb 19, 2008 12:41 PM, Stefan van der Walt 
><stefan@sun.ac.za> wrote:
> 
>> Hi Neal
>>
>> On Tue, Feb 19, 2008 at 01:38:06PM -0500, Neal Becker 
>>wrote:
>> > Does numpy/scipy have a partial_sum and adj_difference 
>>function?
>> >
>> > partial_sum[i] = \sum_{j=0}^{i} x[j]
>>
>> numpy.cumsum
>>
>> Yikes, the docstring contains "Blah, blah".  I'll fix 
>>that
>> immediately.
>>
> 
> Gosh,
> 
> And here I thought you were going to fix that. Deleting 
>the "blahs" isn't a
> fix, it's a coverup. Now there is no extended 
>documentation at all.
> 
> Chuck

;-)

>>> from numpy import cumprod
>>> help (cumprod)

Nils


More information about the Numpy-discussion mailing list