Advertisement
Guest User

Change

a guest
Nov 26th, 2014
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.74 KB | None | 0 0
  1. void multiplyVersion2(float**m1, float**m2, int n, float**m3, int bool) {
  2.             printf("Multiplikation Variante 2 beginnt jetzt.\n");
  3.             int zeile, i,spalte;
  4.             float currentM1Value;
  5.             for (zeile = 0; zeile < n; zeile++) {
  6.  
  7.                             if (bool) {
  8.                             giveUpdate(zeile, n);
  9.                     }
  10.  
  11.                     for(i=0; i< n ; i++){
  12.  
  13.                     }
  14.                     for(spalte=0; spalte<n;spalte++){
  15.  
  16.                         currentM1Value=m1[zeile][spalte];
  17.  
  18.                         for(i=0 ; i<n ;i++){
  19.                             m3[zeile][i]+=currentM1Value*m2[spalte][i];
  20.                         //printf("tempProduct[%d] %f \n",i,tempProduct[i]);
  21.                         }
  22.  
  23.                     }
  24.             }
  25.  
  26.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement