!if $character>0
 !set modulo=<br></b>(modulo $character)
!endif

!if $error=$empty
 !if $step<1
  Ici vous avez vos matrices de dpart. Votre but est de modifier les matrices
  par des oprations sur les lignes, pour transformer la matrice de gauche  la
  matrice identit; dans ce cas la matrice de droite sera l'inverse de la
  matrice prsente actuellement  gauche.
 !else
  Aprs <font color=green>$desc</font>, 
  les matrices (tape $step) deviennent :
 !endif
!else
 Etape $step :
!endif

<p>
<center><table border=0>
!if $size<=3
 <tr><td><th colspan=$size>Matrice<br>principale$modulo</th>
 <td colspan=3><th colspan=$size>Matrice&nbsp;de<br>rfrence$modulo</th>
!else
 <tr><td><th colspan=$size>Matrice principale$modulo</th>
 <td colspan=3><th colspan=$size>Matrice&nbsp;de rfrence$modulo</th>
!endif
<tr><td colspan=$[$size+2]><hr></td><td><td colspan=$[$size+2]><hr></td>
!for i=1 to $size
 !set row=!line $i of $pmatrix
 !set rrow=!line $i of $preference
 <tr>
 !if $i=1
  <td rowspan=$size>$(m_leftpar$size)</td>
 !endif
 !for j=1 to $size
  !set c=!item $j of $row
  <td align=center nowrap>
  !if $i isitemof $(col$j) and $click=yes
   !href cmd=reply&modif=auto&origin=$i&dest=$j $c
</td>
  !else
   $c</td>
  !endif
 !next j
 !if $i=1
  <td rowspan=$size>$(m_rightpar$size)</td>
 !endif
 <td nowrap>&nbsp;&nbsp;&nbsp;
 !if $i<$size and $click=yes
  !href cmd=reply&modif=exchange&origin=$i&dest=$[$i+1] ($i)
 !else
  ($i)
 !endif
 &nbsp;&nbsp;&nbsp;</td>
 !if $i=1
  <td rowspan=$size>$(m_leftpar$size)</td>
 !endif
 !for j=1 to $size
  !set c=!item $j of $rrow
  <td align=center nowrap>&nbsp;$c&nbsp;</td>
 !next j
 !if $i=1
  <td rowspan=$size>$(m_rightpar$size)</td>
 !endif
!next i
</table></center>

