[Numpy-discussion] dunno what array operation I'm looking for...

Joris De Ridder Joris.DeRidder@ster.kuleuven...
Sat Mar 22 09:59:38 CDT 2008


On 22 Mar 2008, at 13:49, Chris Withers wrote:

> Joris De Ridder wrote:
>> numpy.diff
>> See http://www.scipy.org/Numpy_Example_List
>
> Cool :-)
>
> Both this and Hoyt's example do exactly what I want.
>
> I'm guessing diff is going to be more efficient though?

No, not really, diff has more functionality, though. It can handle n- 
th order differences (i.e. not only 1st order), and it has axis support.

J.



Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm



More information about the Numpy-discussion mailing list