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