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

Skipper Seabold jsseabold at gmail.com
Wed Nov 28 12:41:57 EST 2012

On Wed, Nov 28, 2012 at 12:31 PM, Sebastian Berg <sebastian at 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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20121128/d34b5b46/attachment.html>

More information about the NumPy-Discussion mailing list