a = np.array([[1,2],[3,4]]) b = np.array([[11,12],[13,14]]) np.dot(a,b) [[37 40], [85 92]]
Here is what the above code is Doing:
1. We have two matrices, a and b.
2. We use the dot() function to multiply the two matrices.
3. The result is a new matrix that contains the product of the two matrices.