A=matrix([[1,2,3],[2,5,3],[5,6,7]])
print A
A.add_multiple_of_row(1,0,1)
print A
A.add_multiple_of_row(0,1,-1)
print A
A.rescale_row(0,-1)
print A

Strang-4.2 1-U (last edited 2010-12-17 12:35:50 by 172)