Ask Your Question

Revision history [back]

The rescale_row method acts in place, which means that it does not return anything, but modifies the matrix:

sage: AA=matrix([[3,-2,2],[1,-4,4],[1,-1,1]])
sage: AA
[ 3 -2  2]
[ 1 -4  4]
[ 1 -1  1]
sage: AA.rescale_row(0,-1)
sage: AA
[-3  2 -2]
[ 1 -4  4]
[ 1 -1  1]