define matrix as structure

This commit is contained in:
wolfni101342 committed 2025-11-10 15:08:30 +01:00
1 parent 29a26b6a8b
commit f76e68773c
1 file changed
+6
+6
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);