Compare commits

..

1 Commits

Author SHA1 Message Date
D2A62006
cdd14986cf Define Matrix structure in matrix.h and remove duplicate definition from matrix.c 2025-11-15 18:28:56 +01:00
2 changed files with 6 additions and 7 deletions

View File

@ -4,12 +4,6 @@
// TODO Matrix-Funktionen implementieren // TODO Matrix-Funktionen implementieren
typedef struct Matrix {
unsigned int xElement;
unsigned int yElement;
int ** data;
} Matrix;
Matrix createMatrix(unsigned int rows, unsigned int cols) Matrix createMatrix(unsigned int rows, unsigned int cols)
{ {
Matrix m; Matrix m;

View File

@ -4,9 +4,14 @@
#define UNDEFINED_MATRIX_VALUE 0 #define UNDEFINED_MATRIX_VALUE 0
typedef float MatrixType; typedef float MatrixType;
// TODO Matrixtyp definieren // TODO Matrixtyp definieren
typedef struct Matrix {
unsigned int xElement;
unsigned int yElement;
double ** data;
} Matrix;
Matrix createMatrix(unsigned int rows, unsigned int cols); Matrix createMatrix(unsigned int rows, unsigned int cols);
void clearMatrix(Matrix *matrix); void clearMatrix(Matrix *matrix);