From 80f263a03b5cb7909fa1f58323e02125a5d0c3cd Mon Sep 17 00:00:00 2001 From: cozis Date: Tue, 29 Mar 2022 00:14:14 +0200 Subject: [PATCH] bugfix --- src/lina.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lina.c b/src/lina.c index 0c4ad9d..314c402 100644 --- a/src/lina.c +++ b/src/lina.c @@ -53,10 +53,9 @@ void lina_dot2(double *A, double *B, double *C, // for executing the product of sum for(int j=0; j < n; j++) + pos += A[i*(n + As) + j] * B[j*(l + Bs) + k]; - pos += A[(i + As)*n + j] * B[(j + Bs) *l + k]; - - C[(i + Cs)*l + k] = pos; + C[i*(l + Cs) + k] = pos; } } }