forked from freudenreichan/info2Praktikum-NeuronalesNetz
refactor: change storage type of matrix to flat storage
This commit is contained in:
1 parent
3ee900784e
commit
5e1a1fdf72
2 files changed
+23
-11
No files matched your search
+2
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user