[Numpy-discussion] Method to shift elements in an array?
Alan G Isaac
aisaac at american.edu
Wed Feb 22 11:09:04 EST 2006
On Wed, 22 Feb 2006, Zachary Pincus apparently wrote:
> Does numpy have an built-in mechanism to shift elements along some
> axis in an array? (e.g. to "roll" [0,1,2,3] by some offset, here 2,
> to make [2,3,0,1])
This sounds like the rotater command in GAUSS.
As far as I know there is no equivalent in numpy.
Please post your ultimate solution.
Cheers,
Alan Isaac
More information about the NumPy-Discussion
mailing list