diff --git a/matrix.c b/matrix.c index ba4b374..44ee6f9 100644 --- a/matrix.c +++ b/matrix.c @@ -42,7 +42,7 @@ Matrix createMatrix(unsigned int rows, unsigned int cols) } */ -Matrix createMatrix(size_t cols, size_t rows) +Matrix createMatrix(size_t rows, size_t cols) { Matrix m; m.rows = rows; diff --git a/matrix.h b/matrix.h index 8f05f79..0c0648a 100644 --- a/matrix.h +++ b/matrix.h @@ -7,9 +7,9 @@ typedef float MatrixType; // TODO Matrixtyp definieren typedef struct Matrix { + MatrixType *buffer; size_t rows; //X-Element size_t cols; //Y-Element - MatrixType *buffer; } Matrix;