A=matrix([[0,2,1,0],[2,2,0,1]])
A.swap_rows(1,0)
print A
print A.inverse()

Strang-1.6-36-U (last edited 2010-12-18 10:49:03 by PratyushaKarnati)