def rowswap(matlist, index1, index2, K):
    matlist[index1], matlist[index2] = matlist[index2], matlist[index1]
    return matlist
Returns the matrix with index1 row and index2 row swapped
dataset/ETHPy150Open sympy/sympy/sympy/matrices/densetools.py/rowswap