bonjour,
je n'arrive pas à trouver l'algorythme de ce problème, comment calculer la multiplication de deux matrices.
voici mon code :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function multi(nbLig1,nbCol1,nbCol2:integer;tab1,tab2:tableau):tableau;
var  i,j,k:integer;
     tab:tableau;
 
begin
      for i:=1 to nbLig1 do
          for j:=1 to nbCol2 do
          begin
              tab[i,j]:=0;
              for k:=1 to nbCol1 do
                 tab[i,j]+=tab1[i,j+k-1]*tab2[i+k-1,j];
          end;
 
   multi:=tab;
end;
merci d'avance pour votre aide
al_alias