import numpy as np
A = np.array([5, -2])
B = np.array([1, 6, 2, 0, -1, -1])
C = np.array([2, 0, -1, 3, -1, 6])
D = np.array([3, 0, 1, 1, -2, 2, 3, 4, -1])
E = A.reshape((2, 1))
F = B.reshape((3, 2))
G = C.reshape((3, 2))
H = D.reshape((3, 3))
print(-2*E)
print(G + F)
print(4*F - G)
print(np.multiply(H*G))
print(np.dot(G*E))
最后两行总是出错,是个什么原因?(倒数第二行是一个(3,3)(3,2)的矩阵,倒数第一行是一个(3,2)(2,1)的矩阵)