[Numpy-discussion] Inplace reshape

Gael Varoquaux gael.varoquaux@normalesup....
Mon Apr 23 12:25:28 CDT 2007


On Mon, Apr 23, 2007 at 10:20:43AM -0700, Timothy Hochberg wrote:
>    Just set the shape of the array:

>        somearray.shape = newshape

Of course ! Thanks

On Mon, Apr 23, 2007 at 12:20:51PM -0500, Robert Kern wrote:
> .reshape()

Unless I miss something obvious "a.reshape()" doesn't modify a, which is
somewhat missleading, IMHO.

Cheers,

Gaël


More information about the Numpy-discussion mailing list