PandA-2024.02
gemm.c
Go to the documentation of this file.
1 #include "gemm.h"
2 
3 void gemm( TYPE m1[N], TYPE m2[N], TYPE prod[N] ){
4  int i, j, k;
5  int k_col, i_col;
6  TYPE mult;
7 
8  outer:for(i=0;i<row_size;i++) {
9  middle:for(j=0;j<col_size;j++) {
10  i_col = i * col_size;
11  TYPE sum = 0;
12  inner:for(k=0;k<row_size;k++) {
13  k_col = k * col_size;
14  mult = m1[i_col + k] * m2[k_col + j];
15  sum += mult;
16  }
17  prod[i_col + j] = sum;
18  }
19  }
20 }
#define col_size
Definition: gemm.h:17
#define TYPE
Definition: backprop.h:21
int sum
Definition: dotproduct.h:3
#define row_size
Definition: gemm.h:16
static const uint32_t k[]
Definition: sha-256.c:22
void gemm(TYPE m1[N], TYPE m2[N], TYPE prod[N])
Definition: gemm.c:3
const unsigned long long m2
Definition: digitrec_sw.c:13
#define N
Definition: dfdiv.c:60
const unsigned long long m1
Definition: digitrec_sw.c:12

Generated on Mon Feb 12 2024 13:02:50 for PandA-2024.02 by doxygen 1.8.13