dot product formula code example
Example 1: dot product array
import numpy.matlib
import numpy as np
a = np.array([[1,2],[3,4]])
b = np.array([[11,12],[13,14]])
np.dot(a,b)
Example 2: r dot product
a = c(1,2)
b = c(0,1)
# Perform the dot product
a%*%b