From f76e68773cf36e7cad099bf19ec9b35217d37f15 Mon Sep 17 00:00:00 2001 From: Niklas Wolf Date: Mon, 10 Nov 2025 15:08:30 +0100 Subject: [PATCH] define matrix as structure --- matrix.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/matrix.h b/matrix.h index cc640d1..1c52638 100644 --- a/matrix.h +++ b/matrix.h @@ -7,6 +7,12 @@ typedef float MatrixType; // TODO Matrixtyp definieren +typedef struct +{ + unsigned int rows; + unsigned int cols; + MatrixType *data; +}Matrix; Matrix createMatrix(unsigned int rows, unsigned int cols); void clearMatrix(Matrix *matrix);