[Numpy-discussion] "Manually" broadcasting arrays in Python
A. M. Archibald
peridot.faceted at gmail.com
Wed Oct 4 01:20:44 EDT 2006
On 03/10/06, Robert Kern <robert.kern at gmail.com> wrote:
> Has anyone implemented an easier or more efficient way to broadcast arrays to a
> common shape at the Python level? I was hoping that the broadcast iterator would
> actually provide the broadcasted arrays, but it does not.
How about vectorize(lambda *args: args)? Almost works, only it
sometimes segfaults with more than two arguments... but that's clearly
a numpy bug.
A. M. Archibald
More information about the NumPy-Discussion
mailing list