rowSwap a trois arguments : une matrice A et deux entiers n1 et n2. rowSwap renvoie la matrice obtenue en échangeant dans A les lignes n1 et n2. On tape :
On obtient :