From f807f8cc1a968af3fb834593c1c5f78be78fbda0 Mon Sep 17 00:00:00 2001 From: Maxi Date: Mon, 9 Nov 2026 09:17:52 +0100 Subject: [PATCH] maxi_matirx.h fertiggestellt --- Startcode/matrix.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Startcode/matrix.h b/Startcode/matrix.h index cc640d1..07c6b45 100644 --- a/Startcode/matrix.h +++ b/Startcode/matrix.h @@ -5,8 +5,12 @@ typedef float MatrixType; -// TODO Matrixtyp definieren - +typedef struct +{ + MatrixType *buffer; // Zeiger auf die Werte (zeilenweise hintereinander) + unsigned int rows; // Anzahl Zeilen + unsigned int cols; // Anzahl Spalten +} Matrix; Matrix createMatrix(unsigned int rows, unsigned int cols); void clearMatrix(Matrix *matrix);