define matrix as structure

This commit is contained in:
Niklas Wolf 2025-11-10 15:08:30 +01:00
parent 29a26b6a8b
commit f76e68773c

View File

@ -7,6 +7,12 @@ typedef float MatrixType;
// TODO Matrixtyp definieren
typedef struct
{
unsigned int rows;
unsigned int cols;
MatrixType *data;
}Matrix;
Matrix createMatrix(unsigned int rows, unsigned int cols);
void clearMatrix(Matrix *matrix);