[Numpy-discussion] Bug in dstack?
Charles R Harris
charlesr.harris at gmail.com
Thu Apr 2 18:46:52 EDT 2009
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 the first axis instead of the last
would be useful. Maybe gstack or astack?
Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20090402/92cdade7/attachment.html>
More information about the NumPy-Discussion
mailing list