Which NumPy function calculates the dot product?
-
A
np.dot()
Correct answer
-
B
np.product()
-
C
np.multiply()
-
D
np.matmul()
Correct answer
A. np.dot()
14 views
Explanation
np.dot() computes the dot product of two arrays, equivalent to matrix multiplication for 2D arrays.
Doubts & discussion
Not sure why the answer is A? Ask here and get an explanation.
Ask a doubt about this MCQ