Added struct Matrix in matrix.h, matrix.c

This commit is contained in:
weberlu100319 committed 2025-11-12 11:48:42 +01:00
1 parent 8286702cd3
commit ebc5ff0216
2 files changed
+10

No files matched your search

+7
View File
@@ -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)
{
+3
View File
@@ -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);