[Numpy-discussion] Is this a bug?
njs at pobox.com
Tue Sep 16 15:42:43 EDT 2014
On Tue, Sep 16, 2014 at 3:27 PM, Charles R Harris
<charlesr.harris at gmail.com> wrote:
> Hi All,
> It turns out that gufuncs will broadcast the last dimension if it is one.
> For instance, inner1d has signature `(n), (n) -> ()`, yet
> In : inner1d([1,1,1], )
> Out: 3
Yes, this looks totally wrong to me too... broadcasting is a feature
of auto-vectorizing a core operation over a set of dimensions, it
shouldn't be applied to the dimensions of the core operation itself
Nathaniel J. Smith
Postdoctoral researcher - Informatics - University of Edinburgh
More information about the NumPy-Discussion