On 2/3/2010 3:08 AM, laurent.fe...@free.fr wrote:
> if i multiply two matrix, one with a unique line and the second one
> with a unique column, i should have a scalar


What definition of matrix multiplication is that??

If you really want a scalar product,
ask for it::

         >>> import numpy as np
         >>> m1 = np.mat('0 1 2')
         >>> m2 = m1.T
         >>> np.dot(m1.flat,m2.flat)
         5

Alan Isaac

_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to