refactor: change storage type of matrix to flat storage

This commit is contained in:
haugnerqu103436 committed 2026-11-05 14:26:57 +01:00
1 parent 3ee900784e
commit 5e1a1fdf72
2 files changed
+23 -11

No files matched your search

+2 -1
View File
@@ -6,11 +6,12 @@
typedef float MatrixType;
// TODO Matrixtyp definieren
// Flat Storage: Nur ein Pointer, sorgt für zusammenhängendes array, kein verstreuter Speicher -> bessere Performance
typedef struct {
unsigned int rows;
unsigned int cols;
MatrixType** storage;
MatrixType* storage;
} Matrix;
Matrix createMatrix(unsigned int rows, unsigned int cols);