[Numpy-discussion] Inplace shift
Fri Jun 6 14:16:43 CDT 2008
On Fri, Jun 6, 2008 at 2:08 PM, Zachary Pincus <firstname.lastname@example.org> wrote:
>> I'd like to shift the columns of a 2d array one column to the right.
>> Is there a way to do that without making a copy?
> I think what you want is numpy.roll?
It doesn't work inplace. It creates a new array, thereby effectively
copying the data.
"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
-- Umberto Eco
More information about the Numpy-discussion