Numpy 中的矩阵向量乘法

mac2026-08-21  1

转载自链接:https://blog.csdn.net/itnerd/article/details/83444867

结论:

元素乘法:np.multiply(a,b) 矩阵乘法:np.dot(a,b) 或 np.matmul(a,b) 或 a.dot(b) 唯独注意:*,在 np.array 中重载为元素乘法,在 np.matrix 中重载为矩阵乘法!

最新回复(0)