current position:Home>Multiply [email protected]

Multiply [email protected]

2022-05-15 05:57:44__ Watson__

Numpy Matrix vector multiplication in
Python Several kinds of matrix multiplication in np.dot, np.multiply, *

about np.array and np.matrix

  • Element multiplication :
  1. np.multiply(A, B)
  2. Multiplication symbol * ( about np.array Overload to element multiplication )
  • Matrix multiplication :
  1. np.dot(A, B) ( For two dimensions array)
  2. A.dot(B) ( For two dimensions array)
  3. np.matmul(A, B)
  4. A @ B
  5. Multiplication symbol * ( about np.matrix Reloading to matrix multiplication )
  • Inner product ( For element multiplication and addition ):
    np.dot(a, b) ( about A one-dimensional array)

copyright notice
author[__ Watson__],Please bring the original link to reprint, thank you.
https://en.pythonmana.com/2022/131/202205110609598761.html

Random recommended