[Numpy-discussion] defmatrix.py

Sven Schreiber svetosch@gmx....
Tue Mar 27 07:00:51 CDT 2007

Travis Oliphant schrieb:

> O.K.  So, the problem is that when I defined matrix multiplication, I 
> mistakenly believed that dot always interpreted 1-d arrays as row 
> vectors which it is now clear it doesn't.
> I think this led to the issues. 
> So, making dot always return arrays seems like the needed fix.

Does that mean that...

a) dot(a,b) will return an array even if a and b are both numpy-matrices?


b) dot(c,d) will return an array if c or d is a numpy-matrix?

Thanks for any clarifications,


More information about the Numpy-discussion mailing list