[Numpy-discussion] result shape from dot for 0d, 1d, 2d scalar

Skipper Seabold jsseabold@gmail....
Wed Nov 28 11:41:57 CST 2012


On Wed, Nov 28, 2012 at 12:31 PM, Sebastian Berg <sebastian@sipsolutions.net
> wrote:

> Maybe a strict matrix product would make sense too, but the dot function
> behavior cannot be changed in any case, so its pointless to argue about
> it. Just make sure your arrays are 2-d (or matrices) if you want a
> matrix product, which will give the behavior you expect in a much more
> controlled fashion anyway.
>
>
I'm not arguing anything. I was just stating why I was surprised and was
looking for guidance to update my expectations, which you've provided.
Thanks. Assuring input dimensions is my solution.

Skipper
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20121128/d34b5b46/attachment-0001.html 


More information about the NumPy-Discussion mailing list