python 基础

乘法操作

  • np.dot():内积。对于两个向量,得到内积;对于矩阵,为矩阵乘法;
  • np.matmul()和@:矩阵乘法;
  • np.multiply()和*:对应位置的乘积。(element-wise product)

reference

https://blog.csdn.net/FrankieHello/article/details/103510118

posted @ 2023-12-06 09:46  grdiv  阅读(19)  评论(0)    收藏  举报