[Numpy-discussion] try to solve issue #2649 and revisit #473

Alan G Isaac alan.isaac@gmail....
Wed Apr 3 13:50:44 CDT 2013


On 4/3/2013 2:44 PM, huangkandiy@gmail.com wrote:
> I suggest add function dot to matrix

 >>> import numpy as np; x = np.arange(5); I = np.asmatrix(np.identity(5));
 >>> I.dot(x)
matrix([[ 0.,  1.,  2.,  3.,  4.]])


Alan Isaac



More information about the NumPy-Discussion mailing list