5 Commits
Author SHA1 Message Date
kachelto100370 d8e759b436 merge upstream 2025-11-16 15:37:40 +00:00
kachelto100370 28944bd871 added createMatrix() + matrix data type 2025-11-11 11:15:40 +01:00
kachelto100370 29b2966c63 defined struct matrix 2025-11-11 09:54:31 +01:00
kachelto100370 41c164d3b2 kleine config änderung 2025-11-11 09:20:18 +01:00
kachelto100370 b4bc2fae8a add Readme 2025-11-11 09:20:18 +01:00
4 changed files with 14 additions and 2 deletions

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
{
"makefile.configureOnOpen": false
}
+2
View File
@@ -0,0 +1,2 @@
# Projekt 2 für Informatik 2 Praktikum
+3 -2
View File
@@ -6,12 +6,13 @@
Matrix createMatrix(unsigned int rows, unsigned int cols)
{
MatrixType* data = malloc(rows * cols * sizeof(MatrixType));
Matrix newMatrix = {rows, cols, data};
return newMatrix;
}
void clearMatrix(Matrix *matrix)
{
}
void setMatrixAt(MatrixType value, Matrix matrix, unsigned int rowIdx, unsigned int colIdx)
+6
View File
@@ -6,6 +6,12 @@
typedef float MatrixType;
// TODO Matrixtyp definieren
typedef struct
{
unsigned int rows;
unsigned int cols;
MatrixType *data;
} Matrix;
Matrix createMatrix(unsigned int rows, unsigned int cols);