Re: [Numpy-discussion] ENH: Add the function 'expand_view'

2015-11-24 Thread josef.pktd
On Tue, Nov 24, 2015 at 7:13 PM, Nathaniel Smith wrote: > On Nov 24, 2015 11:57 AM, "John Kirkham" wrote: > > > > Takes an array and tacks on arbitrary dimensions on either side, which > is returned as a view always. Here are the relevant features: > > > > * Creates a view of the array that has

Re: [Numpy-discussion] Misleading/erroneous TypeError message

2015-11-24 Thread Peter Creasey
> > I just upgraded my numpy and started to received a TypeError from one of > > my codes that relied on the old, less strict, casting behaviour. The error > > message, however, left me scratching my head when trying to debug something > > like this: > > > > >>> a = array([0],dtype=uint64) > > >>>

Re: [Numpy-discussion] understanding buffering done when broadcasting

2015-11-24 Thread Eli Bendersky
On Mon, Nov 23, 2015 at 2:09 PM, Sebastian Berg wrote: > On Mo, 2015-11-23 at 13:31 -0800, Eli Bendersky wrote: > > Hello, > > > > > > I'm trying to understand the buffering done by the Numpy iterator > > interface (the new post 1.6-one) when running ufuncs on arrays that > > require broadcasting

Re: [Numpy-discussion] ENH: Add the function 'expand_view'

2015-11-24 Thread Nathaniel Smith
On Nov 24, 2015 11:57 AM, "John Kirkham" wrote: > > Takes an array and tacks on arbitrary dimensions on either side, which is returned as a view always. Here are the relevant features: > > * Creates a view of the array that has the dimensions before and after tacked on to it. > * Takes the before

Re: [Numpy-discussion] Misleading/erroneous TypeError message

2015-11-24 Thread Charles R Harris
On Tue, Nov 24, 2015 at 12:42 PM, Peter Creasey < p.e.creasey...@googlemail.com> wrote: > Hi, > > I just upgraded my numpy and started to received a TypeError from one of > my codes that relied on the old, less strict, casting behaviour. The error > message, however, left me scratching my head whe

[Numpy-discussion] ENH: Add the function 'expand_view'

2015-11-24 Thread John Kirkham
Takes an array and tacks on arbitrary dimensions on either side, which is returned as a view always. Here are the relevant features: * Creates a view of the array that has the dimensions before and after tacked on to it. * Takes the before and after arguments independent of each other and the c

[Numpy-discussion] Misleading/erroneous TypeError message

2015-11-24 Thread Peter Creasey
Hi, I just upgraded my numpy and started to received a TypeError from one of my codes that relied on the old, less strict, casting behaviour. The error message, however, left me scratching my head when trying to debug something like this: >>> a = array([0],dtype=uint64) >>> a += array([1],dtype=i