From ebc5ff02169fc10aea224af72919d76eadb46149 Mon Sep 17 00:00:00 2001 From: Lukas Weber Date: Wed, 12 Nov 2025 11:48:42 +0100 Subject: [PATCH] Added struct Matrix in matrix.h, matrix.c --- matrix.c | 7 +++++++ matrix.h | 3 +++ 2 files changed, 10 insertions(+) diff --git a/matrix.c b/matrix.c index ad00628..59fd963 100644 --- a/matrix.c +++ b/matrix.c @@ -4,6 +4,13 @@ // TODO Matrix-Funktionen implementieren +typedef struct Matrix { + unsigned int rows; + unsigned int cols; + MatrixType* buffer; +} Matrix; + + Matrix createMatrix(unsigned int rows, unsigned int cols) { diff --git a/matrix.h b/matrix.h index cc640d1..466ef43 100644 --- a/matrix.h +++ b/matrix.h @@ -7,6 +7,9 @@ typedef float MatrixType; // TODO Matrixtyp definieren +typedef struct Matrix; + + Matrix createMatrix(unsigned int rows, unsigned int cols); void clearMatrix(Matrix *matrix);