Hi, Numpy let's me define arrays with zero rows and/or columns, and that's wanted behaviour from what I have read in discussions. However, I can add an array with zero rows to an array with one row (but not more), resulting in another zero row array, like so:
In: a = zeros((4,0)) In: a Out: array([], shape=(4, 0), dtype=float64) In: b = zeros((4,1)) In: b Out: array([[ 0.], [ 0.], [ 0.], [ 0.]]) In: a + b Out: array([], shape=(4, 0), dtype=float64) Is this a bug? This should give a shape mismatch error, shouldn't? Cheers David -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion