In [1]:
import numpy
import numpy as np
In [2]:
m=6
n=4
k=5
In [3]:
A = np.array(range(11,41)).reshape((k,m))
A = A.T
B = np.array(range(11,31)).reshape((n,k))
B = B.T
C = np.array(range(11,35)).reshape((n,m))
C = C.T
In [4]:
print(A); print(B); print(C)
In [5]:
np.dot(A,B)+C
Out[5]:
In [6]:
np.dot(A,B)
Out[6]:
In [ ]: