[Numpy-discussion] result shape from dot for 0d, 1d, 2d scalar
Wed Nov 28 11:41:57 CST 2012
On Wed, Nov 28, 2012 at 12:31 PM, Sebastian Berg <email@example.com
> 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...
More information about the NumPy-Discussion