From f9334f8b62376697024f918bbbbd71c50a6cd436 Mon Sep 17 00:00:00 2001 From: zidanmo99094 Date: Tue, 17 Nov 2026 12:27:21 +0100 Subject: [PATCH] push --- Startcode/matrix.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Startcode/matrix.h b/Startcode/matrix.h index cc640d1..b14a16b 100644 --- a/Startcode/matrix.h +++ b/Startcode/matrix.h @@ -5,8 +5,11 @@ typedef float MatrixType; -// TODO Matrixtyp definieren - +typedef struct { + unsigned int rows; + unsigned int cols; + MatrixType *buffer; +} Matrix; Matrix createMatrix(unsigned int rows, unsigned int cols); void clearMatrix(Matrix *matrix); @@ -15,5 +18,4 @@ MatrixType getMatrixAt(const Matrix matrix, unsigned int rowIdx, unsigned int co Matrix add(const Matrix matrix1, const Matrix matrix2); Matrix multiply(const Matrix matrix1, const Matrix matrix2); - -#endif +#endif \ No newline at end of file