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
_______________________________________________
Numpy-discussion mailing list
[email protected]
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to