dot product numpy array code example
Example 1: numpy dot product
a = np.array([[1,2],[3,4]])
b = np.array([[11,12],[13,14]])
np.dot(a,b)
[[37 40], [85 92]]
Example 2: numpy dot product
a = np.array([1,2,3])
b = np.array([4,5,6])
np.dot(a,b)
32