Re: [Numpy-discussion] Bug in dstack?

2009-04-02 Thread Robert Kern
On Thu, Apr 2, 2009 at 19:18, Charles R Harris wrote: > > > On Thu, Apr 2, 2009 at 5:50 PM, wrote: >> >> On Thu, Apr 2, 2009 at 6:46 PM, Charles R Harris >> wrote: >> > Note: >> > >> > In [133]: l = [[1,0,0],[1,1,0],[1,1,1]] >> > >> > In [134]: dstack(l) >> > Out[134]: >> > array([[[1, 1, 1], >>

Re: [Numpy-discussion] Bug in dstack?

2009-04-02 Thread Charles R Harris
On Thu, Apr 2, 2009 at 5:50 PM, wrote: > On Thu, Apr 2, 2009 at 6:46 PM, Charles R Harris > wrote: > > Note: > > > > In [133]: l = [[1,0,0],[1,1,0],[1,1,1]] > > > > In [134]: dstack(l) > > Out[134]: > > array([[[1, 1, 1], > > [0, 1, 1], > > [0, 0, 1]]]) > > > > In [135]: dstack(l

Re: [Numpy-discussion] Bug in dstack?

2009-04-02 Thread josef . pktd
On Thu, Apr 2, 2009 at 6:46 PM, Charles R Harris wrote: > Note: > > In [133]: l = [[1,0,0],[1,1,0],[1,1,1]] > > In [134]: dstack(l) > Out[134]: > array([[[1, 1, 1], >     [0, 1, 1], >     [0, 0, 1]]]) > > In [135]: dstack(l).shape > Out[135]: (1, 3, 3) > > > Shouldn't the shape be (3,3)? A

[Numpy-discussion] Bug in dstack?

2009-04-02 Thread Charles R Harris
Note: In [133]: l = [[1,0,0],[1,1,0],[1,1,1]] In [134]: dstack(l) Out[134]: array([[[1, 1, 1], [0, 1, 1], [0, 0, 1]]]) In [135]: dstack(l).shape Out[135]: (1, 3, 3) Shouldn't the shape be (3,3)? Also, for generalized ufuncs and broadcasting I think a function that stacked along

Re: [Numpy-discussion] Numpy 1.3.0 rc1 OS X Installer

2009-04-02 Thread Christopher Barker
David Cournapeau wrote: > Well, yes, it could be a totally different, incompatible python that it > would still do as you said - distutils cannot be trusted at all to do > the right thing here, quite true -- though hopefully you now what is on your system, so it can only go so wrong. However I j