rowswap(A,i,j)

Swaps row i with row j of matrix A.


See also rowtimes rowtimesadd rowadd 


Example


a = ( 1, 2 ; 3, 4 ; -1, 7 )

 1  2

 3  4

-1  7

rowswap( a, 2, 3 )

 1  2

-1  7

 3  4