Re: [Numpy-discussion] Is this a bug?

2014-09-16 Thread Jaime Fernández del Río
On Tue, Sep 16, 2014 at 4:32 PM, Nathaniel Smith wrote: > On Tue, Sep 16, 2014 at 6:56 PM, Jaime Fernández del Río > wrote: > > On Tue, Sep 16, 2014 at 3:26 PM, Charles R Harris > > wrote: > >> > >> On Tue, Sep 16, 2014 at 2:51 PM, Nathaniel Smith wrote: > >>> > >>> On Tue, Sep 16, 2014 at 4:3

Re: [Numpy-discussion] Is this a bug?

2014-09-16 Thread Nathaniel Smith
On Tue, Sep 16, 2014 at 8:31 PM, Jaime Fernández del Río wrote: > On Tue, Sep 16, 2014 at 4:32 PM, Nathaniel Smith wrote: >> >> On Tue, Sep 16, 2014 at 6:56 PM, Jaime Fernández del Río >> wrote: >> > Are we OK with the appending of size 1 dimensions to complete the core >> > dimensions? That is,

Re: [Numpy-discussion] Is this a bug?

2014-09-16 Thread Jaime Fernández del Río
On Tue, Sep 16, 2014 at 4:32 PM, Nathaniel Smith wrote: > On Tue, Sep 16, 2014 at 6:56 PM, Jaime Fernández del Río > wrote: > > On Tue, Sep 16, 2014 at 3:26 PM, Charles R Harris > > wrote: > >> > >> On Tue, Sep 16, 2014 at 2:51 PM, Nathaniel Smith wrote: > >>> > >>> On Tue, Sep 16, 2014 at 4:3

Re: [Numpy-discussion] Is this a bug?

2014-09-16 Thread Nathaniel Smith
On Tue, Sep 16, 2014 at 6:56 PM, Jaime Fernández del Río wrote: > On Tue, Sep 16, 2014 at 3:26 PM, Charles R Harris > wrote: >> >> On Tue, Sep 16, 2014 at 2:51 PM, Nathaniel Smith wrote: >>> >>> On Tue, Sep 16, 2014 at 4:31 PM, Jaime Fernández del Río >>> wrote: >>> > If it is a bug, it is an e

Re: [Numpy-discussion] Is this a bug?

2014-09-16 Thread Charles R Harris
On Tue, Sep 16, 2014 at 5:03 PM, Eric Moore wrote: > > > On Tuesday, September 16, 2014, Jaime Fernández del Río < > jaime.f...@gmail.com> wrote: > >> On Tue, Sep 16, 2014 at 3:26 PM, Charles R Harris < >> charlesr.har...@gmail.com> wrote: >> >>> >>> >>> On Tue, Sep 16, 2014 at 2:51 PM, Nathaniel

Re: [Numpy-discussion] Is this a bug?

2014-09-16 Thread Charles R Harris
On Tue, Sep 16, 2014 at 4:56 PM, Jaime Fernández del Río < jaime.f...@gmail.com> wrote: > On Tue, Sep 16, 2014 at 3:26 PM, Charles R Harris < > charlesr.har...@gmail.com> wrote: > >> >> >> On Tue, Sep 16, 2014 at 2:51 PM, Nathaniel Smith wrote: >> >>> On Tue, Sep 16, 2014 at 4:31 PM, Jaime Fernán

Re: [Numpy-discussion] Is this a bug?

2014-09-16 Thread Eric Moore
On Tuesday, September 16, 2014, Jaime Fernández del Río < jaime.f...@gmail.com> wrote: > On Tue, Sep 16, 2014 at 3:26 PM, Charles R Harris < > charlesr.har...@gmail.com > > wrote: > >> >> >> On Tue, Sep 16, 2014 at 2:51 PM, Nathaniel Smith > > wrote: >> >>> On Tue, Sep 16, 2014 at 4:31 PM, Jaime F

Re: [Numpy-discussion] Is this a bug?

2014-09-16 Thread Jaime Fernández del Río
On Tue, Sep 16, 2014 at 3:26 PM, Charles R Harris wrote: > > > On Tue, Sep 16, 2014 at 2:51 PM, Nathaniel Smith wrote: > >> On Tue, Sep 16, 2014 at 4:31 PM, Jaime Fernández del Río >> wrote: >> > If it is a bug, it is an extended one, because it is the same behavior >> of >> > einsum: >> > >> >

Re: [Numpy-discussion] Is this a bug?

2014-09-16 Thread Charles R Harris
On Tue, Sep 16, 2014 at 2:51 PM, Nathaniel Smith wrote: > On Tue, Sep 16, 2014 at 4:31 PM, Jaime Fernández del Río > wrote: > > If it is a bug, it is an extended one, because it is the same behavior of > > einsum: > > > np.einsum('i,i', [1,1,1], [1]) > > 3 > np.einsum('i,i', [1,1,1], [

Re: [Numpy-discussion] Is this a bug?

2014-09-16 Thread Nathaniel Smith
On Tue, Sep 16, 2014 at 4:31 PM, Jaime Fernández del Río wrote: > If it is a bug, it is an extended one, because it is the same behavior of > einsum: > np.einsum('i,i', [1,1,1], [1]) > 3 np.einsum('i,i', [1,1,1], [1,1]) > Traceback (most recent call last): > File "", line 1, in > Valu

Re: [Numpy-discussion] Is this a bug?

2014-09-16 Thread Jaime Fernández del Río
On Tue, Sep 16, 2014 at 12:27 PM, Charles R Harris < charlesr.har...@gmail.com> wrote: > Hi All, > > It turns out that gufuncs will broadcast the last dimension if it is one. > For instance, inner1d has signature `(n), (n) -> ()`, yet > > In [27]: inner1d([1,1,1], [1]) > Out[27]: 3 > > In [28]: in

Re: [Numpy-discussion] Is this a bug?

2014-09-16 Thread Nathaniel Smith
On Tue, Sep 16, 2014 at 3:55 PM, wrote: > On Tue, Sep 16, 2014 at 3:42 PM, Nathaniel Smith wrote: >> On Tue, Sep 16, 2014 at 3:27 PM, Charles R Harris >> wrote: >>> Hi All, >>> >>> It turns out that gufuncs will broadcast the last dimension if it is one. >>> For instance, inner1d has signature

Re: [Numpy-discussion] Is this a bug?

2014-09-16 Thread Charles R Harris
On Tue, Sep 16, 2014 at 1:55 PM, wrote: > On Tue, Sep 16, 2014 at 3:42 PM, Nathaniel Smith wrote: > > On Tue, Sep 16, 2014 at 3:27 PM, Charles R Harris > > wrote: > >> Hi All, > >> > >> It turns out that gufuncs will broadcast the last dimension if it is > one. > >> For instance, inner1d has si

Re: [Numpy-discussion] Linear algebra functions on empty arrays

2014-09-16 Thread Nathaniel Smith
On 15 Sep 2014 05:49, "Sebastian Berg" wrote: > For example the QR and eigvals does not allow it, but on the other hand > solve explicitly does (most probably never did, simply because lapack > does not). So I am wondering if there is some convention for this, or > what convention we should implem

Re: [Numpy-discussion] Is this a bug?

2014-09-16 Thread josef.pktd
On Tue, Sep 16, 2014 at 3:42 PM, Nathaniel Smith wrote: > On Tue, Sep 16, 2014 at 3:27 PM, Charles R Harris > wrote: >> Hi All, >> >> It turns out that gufuncs will broadcast the last dimension if it is one. >> For instance, inner1d has signature `(n), (n) -> ()`, yet >> >> In [27]: inner1d([1,1,

Re: [Numpy-discussion] Is this a bug?

2014-09-16 Thread Nathaniel Smith
On Tue, Sep 16, 2014 at 3:27 PM, Charles R Harris wrote: > Hi All, > > It turns out that gufuncs will broadcast the last dimension if it is one. > For instance, inner1d has signature `(n), (n) -> ()`, yet > > In [27]: inner1d([1,1,1], [1]) > Out[27]: 3 Yes, this looks totally wrong to me too... b

Re: [Numpy-discussion] Is this a bug?

2014-09-16 Thread Charles R Harris
On Tue, Sep 16, 2014 at 1:27 PM, Charles R Harris wrote: > Hi All, > > It turns out that gufuncs will broadcast the last dimension if it is one. > For instance, inner1d has signature `(n), (n) -> ()`, yet > > In [27]: inner1d([1,1,1], [1]) > Out[27]: 3 > > In [28]: inner1d([1,1,1], [1,1]) > -

[Numpy-discussion] Is this a bug?

2014-09-16 Thread Charles R Harris
Hi All, It turns out that gufuncs will broadcast the last dimension if it is one. For instance, inner1d has signature `(n), (n) -> ()`, yet In [27]: inner1d([1,1,1], [1]) Out[27]: 3 In [28]: inner1d([1,1,1], [1,1]) --- Value