multiplication of matrix numpy code example
Example 1: python numpy multiply matrices
a = np.array([[-6, 1], [1, 1]])
b = np.array([[0], [8]])
c = a.dot(b) # multiply matrice a and b
Example 2: python matrix multiplication
>>> a = np.array([[ 5, 1 ,3],
[ 1, 1 ,1],
[ 1, 2 ,1]])
>>> b = np.array([1, 2, 3])
>>> print a.dot(b)
array([16, 6, 8])