[Numpy-discussion] Broadcasting rules (Ticket 76).

Travis Oliphant oliphant at ee.byu.edu
Thu Apr 27 11:40:10 CDT 2006


Christopher Barker wrote:

> Keith Goodman wrote:
>
>> Exactly. That's why the OP doesn't need to write a special function in
>> Matlab called SumColumns.
>
>
> "Didn't". I haven't used MATLAB for much in years. Back in the day, 
> that feature didn't exist. Or at least was poorly enough documented 
> that i didn't think it existed. Matlab didn't used to only support 2-d 
> arrays as well.
>
> Anyway, the point was that a (n,) array and a (n,1) array and a (1,n) 
> array are all different, and that difference should be preserved.
>
> I'm still confused as to what behavior Sasha wants that doesn't exist.


I'm not exactly sure.   But, one of the things I think he has suggested 
(please tell me if my understanding is wrong) is to allow a 2x3 array to 
be "broadcast" to a (2n)x(3m) array by repeated copying as needed. 


-Travis







More information about the Numpy-discussion mailing list