From c748cf5a9708e31393fc1a0424b1997ec1b38b5f Mon Sep 17 00:00:00 2001 From: stammjo100588 Date: Mon, 17 Nov 2025 12:06:32 +0100 Subject: [PATCH] Kommentare --- matrix.c | 4 ++-- neuralNetworkTests.c | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/matrix.c b/matrix.c index 32a174b..e4e8a08 100644 --- a/matrix.c +++ b/matrix.c @@ -67,7 +67,7 @@ Matrix add(const Matrix matrix1, const Matrix matrix2) return result; } - // Case B: matrix1 has shape (rows x cols) and matrix2 is (rows x 1) -> broadcast second across columns + // Case B: matrix1 besteht aus (rows x cols) und matrix2 ist (rows x 1) -> einmal alle rows einzeln auf die andere Addieren if (matrix1.rows == matrix2.rows && matrix2.cols == 1 && matrix1.cols > 1) { Matrix result = createMatrix(matrix1.rows, matrix1.cols); @@ -84,7 +84,7 @@ Matrix add(const Matrix matrix1, const Matrix matrix2) return result; } - // Case C: matrix1 is (rows x 1) and matrix2 is (rows x cols) -> broadcast first across columns + // Case C: matrix1 ist (rows x 1) und matrix2 ist (rows x cols) -> einmal alle cols einzeln auf die andere Addieren if (matrix2.rows == matrix1.rows && matrix1.cols == 1 && matrix2.cols > 1) { Matrix result = createMatrix(matrix2.rows, matrix2.cols); diff --git a/neuralNetworkTests.c b/neuralNetworkTests.c index 589c3ae..7555c58 100644 --- a/neuralNetworkTests.c +++ b/neuralNetworkTests.c @@ -52,8 +52,6 @@ static void prepareNeuralNetworkFile(const char *path, const NeuralNetwork nn) fclose(file); } - - void test_loadModelReturnsCorrectNumberOfLayers(void) { const char *path = "some__nn_test_file.info2";