halo
This commit is contained in:
parent
685bf9837c
commit
c0160343e0
@ -17,7 +17,7 @@ Matrix* CreateMatrixZero(int rows, int cols) {
|
|||||||
|
|
||||||
// Erstellt eine Matrix mit Zufallswerten zwischen -100 und 99
|
// Erstellt eine Matrix mit Zufallswerten zwischen -100 und 99
|
||||||
Matrix* CreateMatrixRand(int rows, int cols) {
|
Matrix* CreateMatrixRand(int rows, int cols) {
|
||||||
srand(time(NULL)); // Initialisiert Zufallszahlengenerator (Achtung: bei jedem Aufruf neu!)
|
srand(time(NULL)); // Initialisiert Zufallszahlengenerator
|
||||||
Matrix *m = CreateMatrixZero(rows, cols);
|
Matrix *m = CreateMatrixZero(rows, cols);
|
||||||
for (int i = 0; i < rows; i++) {
|
for (int i = 0; i < rows; i++) {
|
||||||
for (int j = 0; j < cols; j++) {
|
for (int j = 0; j < cols; j++) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user