Here, you can use np.dot.