to Numpy dot vs matmul in Python use this method. By using this method you can Numpy dot vs matmul in Python. It is very easy to use. Lets learn about of this by given below example: import numpy as np arr1 = np.array([[4,5,6], [3,2,1], [1, 2, 3]]) arr2 = np.array([[[6,7,8], [7,8,9], [1, 2, 3]]]) print("vector multiplication") print(np.dot(arr1, arr2)) Output : [[[65 80 95]] [[33 39 45]] [[23 29 35]]]