Matrix-Struktur definieren

This commit is contained in:
Mihaela Creciun committed 2026-11-12 02:00:29 +01:00
1 parent fbd456f6a0
commit 51f176e892
1 file changed
+3 -2
+3 -2
View File
@@ -7,11 +7,12 @@ typedef float MatrixType;
// TODO Matrixtyp definieren
typedef struct {
MatrixType *buffer;
unsigned int rows;
unsigned int cols;
MatrixType *buffer; // Speichert die Matrixwerte in einem Array, zeigt die Speicheradresse des ersten Matrixwerts im Array
} Matrix;
Matrix createMatrix(unsigned int rows, unsigned int cols);
void clearMatrix(Matrix *matrix);
void setMatrixAt(MatrixType value, Matrix matrix, unsigned int rowIdx, unsigned int colIdx);
@@ -20,4 +21,4 @@ Matrix add(const Matrix matrix1, const Matrix matrix2);
Matrix multiply(const Matrix matrix1, const Matrix matrix2);
#endif
#endif