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