generated from freudenreichan/info2Praktikum-NeuronalesNetz
added if clause to check for fittig matrix dimensions
This commit is contained in:
1 parent
6124b38e8d
commit
8d4b56f703
1 file changed
+3
-2
@@ -54,7 +54,8 @@ Matrix multiply(const Matrix matrix1, const Matrix matrix2)
|
|||||||
result.buffer[i][i] = value;
|
result.buffer[i][i] = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
}
|
||||||
|
printf("Die angegebenen Matrizen haben keine passenden Dimensionen für die Multiplikation");
|
||||||
|
return NULL;
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user