How do you perform matrix multiplication on the numpy arrays A and B ?
What values does the variable out take if the following lines of code are run?
X=np.array([[1,0,1],[2,2,2]]) out=X[0:2,2] out
What is the value of Z after the following code is run?
X=np.array([[1,0],[0,1]]) Y=np.array([[2,2],[2,2]]) Z=np.dot(X,Y)