'Swap the two given rows of the matrix in-place.
Examples
>>> from sympy.matrices import Matrix
>>> M = Matrix([[0, 1], [1, 0]])
>>> M
Matrix([
[0, 1],
[1, 0]])
>>> M.row_swap(0, 1)
>>> M
Matrix([
[1, 0],
[0, 1]])
See Also
row
col_swap'

def row_swap(self, i, j):

    for k in range(0, self.cols):
        (self[(i, k)], self[(j, k)]) = (self[(j, k)], self[(i, k)])
