From c0f73f9362772742aac70c83418f4d05fab074e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?MiraSch=C3=BCtz?= Date: Sun, 15 Nov 2026 19:17:09 +0100 Subject: [PATCH] =?UTF-8?q?fkt=20multiply=20ver=C3=A4ndert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Startcode/matrix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Startcode/matrix.c b/Startcode/matrix.c index 0971cd2..7379618 100644 --- a/Startcode/matrix.c +++ b/Startcode/matrix.c @@ -121,7 +121,7 @@ Matrix multiply(const Matrix matrix1, const Matrix matrix2) for (unsigned int j = 0; j < matrix2.cols; j++) { MatrixType sum = 0; for (unsigned int k = 0; k < matrix1.cols; k++) { - sum += getMatrixAt(matrix1, i, j) * getMatrixAt(matrix2, k, j); + sum += getMatrixAt(matrix1, i, k) * getMatrixAt(matrix2, k, j); } setMatrixAt(sum, resultMatrix, i, j);