generated from freudenreichan/info2Praktikum-NeuronalesNetz
Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
52a7118795 | ||
|
|
b06bbd0de0 | ||
|
|
5fcf897795 | ||
|
|
f34b966f9a | ||
|
|
eda98eb343 |
No files matched your search
@@ -114,6 +114,7 @@ Matrix add(const Matrix matrix1, const Matrix matrix2)
|
||||
return createMatrix(0, 0);
|
||||
}
|
||||
|
||||
|
||||
for(unsigned int i = 0; i < resRows; ++i)
|
||||
{
|
||||
for(unsigned int j = 0; j < resCols; ++j)
|
||||
@@ -124,6 +125,7 @@ Matrix add(const Matrix matrix1, const Matrix matrix2)
|
||||
unsigned int i2 = (matrix2.rows == 1) ? 0 : i;
|
||||
unsigned int j2 = (matrix2.cols == 1) ? 0 : j;
|
||||
|
||||
|
||||
MatrixType val = getMatrixAt(matrix1, i1, j1) + getMatrixAt(matrix2, i2, j2);
|
||||
setMatrixAt(val, &result, i, j);
|
||||
}
|
||||
|
||||
@@ -17,9 +17,6 @@
|
||||
//
|
||||
// Aufgaben:
|
||||
// 1) Implementieren Sie die Funktion prepareNeuralNetworkFile() in neuralNetworkTests.c.
|
||||
// Praktikum Informatik 2
|
||||
//
|
||||
// Wintersemester 2025
|
||||
// 2) Stellen Sie sicher, dass alle Unittests erfolgreich durchlaufen.
|
||||
// make neuralNetworkTests && ./runNeuralNetworkTests
|
||||
|
||||
|
||||
Reference in new issue
Block a user