On Mon, Apr 6, 2009 at 11:34 PM, Robert Kern wrote:
> On Mon, Apr 6, 2009 at 22:31, wrote:
>> I ran again into a problem where numpy created a view (which I didn't
>> realize) and an operation works differently on the view than if it
>> were a copy.
>>
>> I try to construct an example array, whi
On Mon, Apr 6, 2009 at 22:31, wrote:
> I ran again into a problem where numpy created a view (which I didn't
> realize) and an operation works differently on the view than if it
> were a copy.
>
> I try to construct an example array, which, however, is only a view
>
x,y = np.mgrid[0:3,0:3]
>
I ran again into a problem where numpy created a view (which I didn't
realize) and an operation works differently on the view than if it
were a copy.
I try to construct an example array, which, however, is only a view
>>> x,y = np.mgrid[0:3,0:3]
>>> xx = np.vstack((x.flatten(), y.flatten(), np.on