use numpy.dot
, which is not quite same as *
operator:
In [138]: T.dot(v) #the resulting shape is (1, 3), not (3, 1) if you don't care
Out[138]: matrix([[ 14708.6, 51480. , 66188.8]])
In [139]: v.dot(T) #same with v * T
Out[139]: matrix([[ 14708.6, 22062.8, 36771.6]])
In [140]: T.dot(v[:, None]) #if you need the shape to be (3, 1) when doing T*v
Out[140]:
matrix([[ 14708.6],
[ 51480. ],
[ 66188.8]])