[Numpy-discussion] differencing numarray arrays.

Russell E Owen rowen at u.washington.edu
Tue Jul 13 17:11:49 CDT 2004

At 1:41 PM -0700 2004-07-13, Mike Zingale wrote:
>thanks, all these responses helped.  I guess I was still a little
>unclear with the slicing abilities in numarray...

Also note that there is a shift function: numarray.nd_image.shift

In your case I suspect slicing is better, but there are times when 
one really does want to shift the data (e.g. when one wants the 
resulting array to be the same shape as the original).

-- Russell

More information about the Numpy-discussion mailing list