Ch-3.1-ex-10-New-이승진

1906 days ago by matrix

INPUT

A=matrix(3,3,[1,2,3, 3,7,1, 4,2,6]) B=matrix(3,1,[[2], [5], [1]]) AB=A*B A_T=A.transpose() B_T=B.transpose() print "(AB)^T= ", AB.transpose() print "B^T*A^T= ", B_T*A_T 
       
(AB)^T=   [15 42 24]
B^T*A^T=  [15 42 24]
(AB)^T=   [15 42 24]
B^T*A^T=  [15 42 24]