标签: numpy
我想将一个矩阵中的每个元素与另一个矩阵相乘:
a = np.array([[1,2],[3,4]]) M = np.array([[1,2],[3,4]]) operation(a,m) [out] [[1*M , 2*M] , [3*M , 4*M]]