[Numpy-discussion] A basic question on the dot function
Tue Oct 16 14:55:06 CDT 2007
2007/10/16, Bill Baxter <email@example.com>:
> dot() also serves as Numpy's matrix multiply function. So it's trying
> to interpret that as a (3,N) matrix times a (3,N) matrix.
> See examples here:
2007/10/16, Charles R Harris <firstname.lastname@example.org>:
> Dot is matrix multiplication, not the "dot" product you were expecting. It
> is also a bit ambiguous, as you see with the 1-D vectors, where you got what
> you expected.
2007/10/16, Robert Kern <email@example.com>:
> When given two 2-D arrays, dot() essentially does matrix multiplication.
> last dimension of the first argument is matched with the next-to-last
> of the second argument.
> Robert Kern
Thank you for your answers. So, is there a "proper" solution to do the dot
product as I had expected it ?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Numpy-discussion