This commit is contained in:
cozis
2022-03-29 00:14:14 +02:00
parent 61da1c14c9
commit 80f263a03b
+2 -3
View File
@@ -53,10 +53,9 @@ void lina_dot2(double *A, double *B, double *C,
// for executing the product of sum // for executing the product of sum
for(int j=0; j < n; j++) 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*(l + Cs) + k] = pos;
C[(i + Cs)*l + k] = pos;
} }
} }
} }