Kommentare
This commit is contained in:
parent
f1bd72f40e
commit
8c85fcda0d
@ -150,7 +150,7 @@ void clearSeries(GrayScaleImageSeries *series) //Funktion gibt ale komponenten
|
|||||||
series->images = NULL;
|
series->images = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (series->labels != NULL) //prüfen ob es ein kabel array gibt
|
if (series->labels != NULL) //prüfen ob es ein label array gibt
|
||||||
{
|
{
|
||||||
free(series->labels); //sonst speicher für alle labels freigeben und pointer auf NULL setzen
|
free(series->labels); //sonst speicher für alle labels freigeben und pointer auf NULL setzen
|
||||||
series->labels = NULL;
|
series->labels = NULL;
|
||||||
|
|||||||
4
matrix.c
4
matrix.c
@ -67,6 +67,8 @@ Matrix add(const Matrix matrix1, const Matrix matrix2)
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Boradcasting Fall bei neuronlen Netzwerken
|
||||||
|
|
||||||
// Case B: matrix1 besteht aus (rows x cols) und matrix2 ist (rows x 1) -> einmal alle rows einzeln auf die andere Addieren
|
// Case B: matrix1 besteht aus (rows x cols) und matrix2 ist (rows x 1) -> einmal alle rows einzeln auf die andere Addieren
|
||||||
if (matrix1.rows == matrix2.rows && matrix2.cols == 1 && matrix1.cols > 1)
|
if (matrix1.rows == matrix2.rows && matrix2.cols == 1 && matrix1.cols > 1)
|
||||||
{
|
{
|
||||||
@ -84,6 +86,8 @@ Matrix add(const Matrix matrix1, const Matrix matrix2)
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Broadcasting Fall
|
||||||
|
|
||||||
// Case C: matrix1 ist (rows x 1) und matrix2 ist (rows x cols) -> einmal alle cols einzeln auf die andere Addieren
|
// Case C: matrix1 ist (rows x 1) und matrix2 ist (rows x cols) -> einmal alle cols einzeln auf die andere Addieren
|
||||||
if (matrix2.rows == matrix1.rows && matrix1.cols == 1 && matrix2.cols > 1)
|
if (matrix2.rows == matrix1.rows && matrix1.cols == 1 && matrix2.cols > 1)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user