From 35cc6f2c7b91b150374695cfe957da7e2f98e4d4 Mon Sep 17 00:00:00 2001 From: stammjo100588 Date: Mon, 3 Nov 2025 14:29:28 +0100 Subject: [PATCH] Added create Matrix and solves Test 1 --- matrix.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/matrix.c b/matrix.c index ad00628..4ed32c9 100644 --- a/matrix.c +++ b/matrix.c @@ -6,7 +6,11 @@ Matrix createMatrix(unsigned int rows, unsigned int cols) { - + Matrix matrix; + matrix.rows = rows; + matrix.cols = cols; + matrix.buffer = (float*) calloc(rows * cols, sizeof(float)); + return matrix; } void clearMatrix(Matrix *matrix)