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

2010-02-03 Thread laurent . feron
Thanks all for your replies... yes i start with numpy. i translate a dtw algorithm for voice recogniton from matlab to python Rgds, Laurent - Mail Original - De: "Alan G Isaac" À: "Discussion of Numerical Python" Envoyé: Mercredi 3 Février 2010 15h36:07 GMT +01:00 Amsterdam / Berlin / Ber

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

2010-02-03 Thread laurent . feron
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