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