From 6eb4e0e658f2ef0f109e00f6df3ecb4f89a8299a Mon Sep 17 00:00:00 2001 From: Bora Date: Fri, 30 May 2025 08:27:43 +0200 Subject: [PATCH] halo --- TestMatricOp.c | 4 +++- matrixOp.c | 11 ----------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/TestMatricOp.c b/TestMatricOp.c index cd78207..8712bb5 100644 --- a/TestMatricOp.c +++ b/TestMatricOp.c @@ -46,4 +46,6 @@ int main() { FreeMatrix(f); return 0; -} \ No newline at end of file +} + +//gcc TestMatricOp.c -L. -lmatrixOp -o TestMatricOp \ No newline at end of file diff --git a/matrixOp.c b/matrixOp.c index 5ad0900..c9d4204 100644 --- a/matrixOp.c +++ b/matrixOp.c @@ -15,17 +15,6 @@ Matrix* CreateMatrixZero(int rows, int cols) { return m; } -// Erstellt eine Matrix mit Zufallswerten zwischen -100 und 99 -Matrix* CreateMatrixRand(int rows, int cols) { - srand(time(NULL)); // Initialisiert Zufallszahlengenerator - Matrix *m = CreateMatrixZero(rows, cols); - for (int i = 0; i < rows; i++) { - for (int j = 0; j < cols; j++) { - m->data[i][j] = (rand() % 200 - 100) / 1.0; // Werte von -100 bis 99 - } - } - return m; -} // Erstellt eine Matrix, deren Einträge mit startValue beginnen und dann hochzählen Matrix* CreateMatrix(int rows, int cols, double startValue) {