Compare commits

..

5 Commits
main ... main

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

3
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,3 @@
{
"makefile.configureOnOpen": false
}

2
README.md Normal file
View File

@ -0,0 +1,2 @@
# Projekt 2 für Informatik 2 Praktikum

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)

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);