summaryrefslogtreecommitdiff
path: root/test-chill/mm.c
blob: 354d92947c723649660aa4a18f8d9e709cd91e30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15


void mm(float **A, float **B, float **C, int ambn, int an, int bm) {
  int i, j, n;

  for(i = 0; i < an; i++) {
    for(j = 0; j < bm; j++) {
      C[i][j] = 0.0f;
      for(n = 0; n < ambn; n++) {
        C[i][j] += A[i][n] * B[n][j];
      }
    }
  }
}