[Numpy-discussion] multiply a lign matrix with a column matrix should return a scalar( matlab yes, numpy no)!!!

laurent.feron at free.fr laurent.feron at free.fr
Wed Feb 3 03:08:39 EST 2010


Hello,

if i multiply two matrix, one with a unique line and the second one with a unique column, i should have a scalar:

>>> line
matrix([[1, 3, 1]])
>>> col
matrix([[2],
        [2],
        [2]])
>>> line*col
matrix([[10]])

Matlab give me a scalar, Numpy does not...

Do you know why?

Regards,
Laurent



More information about the NumPy-Discussion mailing list