STATUS: Test 1/2/9/11 Functional

This commit is contained in:
Jonas Stamm 2025-11-03 15:00:38 +01:00
parent 772968dfef
commit 6bd7cfb06e
2 changed files with 3 additions and 2 deletions

View File

@ -11,9 +11,9 @@ Matrix createMatrix(unsigned int rows, unsigned int cols)
Matrix matrix;
matrix.rows = rows;
matrix.cols = cols;
matrix.buffer = (float*) calloc(rows * cols, sizeof(float)); //belegt den speicherplatz mit calloc
matrix.buffer = (float*) calloc(rows * cols, sizeof(float)); //belegt den speicherplatz mit calloc -> mit 0
return matrix;
}else{
}else{ //Bei einer "falschen" Matrix eine leere zurückgeben, ohne speicher zu belegen
printf("Nullgroesse der Matrix!!!\n");
Matrix matrix;
matrix.rows = 0;

View File

@ -6,6 +6,7 @@
typedef float MatrixType;
// TODO Matrixtyp definieren
// Done Matrix Struktur
typedef struct {
unsigned int rows;