From: Travis O. <oli...@ee...> - 2006-10-20 07:31:13
|
A. M. Archibald wrote: >On 18/10/06, Travis Oliphant <oli...@ie...> wrote: > > > >>If there are any cases satisfying these rules where a copy does not have >>to occur then let me know. >> >> > >For example, zeros((4,4))[:,1].reshape((2,2)) need not be copied. > >I filed a bug in trac and supplied a patch to multiarray.c that avoids >copies in PyArray_NewShape unless absolutely necessary. > > > Very, very nice. Thanks. |