Learn Before
Concept
NumPy Multiplication
When multiplying n-dimensional arrays it's important to know what type of multiplication you want to do.
- When you want to do element-wise multiplication np.multiply() works the same way as using the * operator
- However, sometimes you want to take the dot product of two arrays, in which case you should use np.dot()
- The final common way to multiply n-dimensional arrays is by using np.mmult() which will return the matrix product of the arrays
0
1
Updated 2020-10-12
Tags
Data Science