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);