SciPy - Integration with Scientific Ecosystem
Which of the following is the correct way to multiply two NumPy arrays
a and b element-wise?a and b element-wise?* performs element-wise multiplication.np.dot(a, b) computes dot product, not element-wise multiplication.a @ b is matrix multiplication.np.multiply(a, b.T) multiplies a with the transpose of b, which is not element-wise unless b is 1D and transpose has no effect.* operator [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions