A=matrix([[1,0],[2,4],[2,1]])
B=matrix([[3,3,0],[1,2,1]])
print A*B
p=A[::,:1]*B[:1]
q=A[::,1:]* B[1:]
print p+q
print A*B==(p+q)

#the given matrix AB using coloumn times rows

Strang-1.4-46-U (last edited 2010-12-17 10:15:20 by satheshchandra)