我有两个矩阵
a = matrix(((1.4) ,(2.5) ,(1.96),(6.25),(12.25))
和
b = matrix(((1 ,1,1,1,1),(2,2,2,2,2)))
当我将这些矩阵相乘时
product = b*a
我收到一个错误
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.6/dist-packages/numpy-1.7.0-py2.6-linux-i686.egg/numpy/matrixlib/defmatrix.py", line 330, in __mul__
return N.dot(self, asmatrix(other))
ValueError: matrices are not aligned
请帮我解决这个问题