Added struct Matrix in matrix.h, matrix.c

This commit is contained in:
Lukas Weber 2025-11-12 11:48:42 +01:00
parent 8286702cd3
commit ebc5ff0216
2 changed files with 10 additions and 0 deletions

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)
{

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);