forked from freudenreichan/info2Praktikum-NeuronalesNetz
1unit test fail gelöst
This commit is contained in:
1 parent
cdeeb6b1a9
commit
e062f848f8
1 file changed
+3
@@ -6,6 +6,9 @@
|
|||||||
|
|
||||||
Matrix createMatrix(unsigned int rows, unsigned int cols)
|
Matrix createMatrix(unsigned int rows, unsigned int cols)
|
||||||
{
|
{
|
||||||
|
if (rows == 0 || cols == 0) {
|
||||||
|
return (Matrix){0}; // Setzt rows, cols und den Puffer auf 0/NULL
|
||||||
|
}
|
||||||
Matrix m;
|
Matrix m;
|
||||||
m.rows = rows;
|
m.rows = rows;
|
||||||
m.cols = cols;
|
m.cols = cols;
|
||||||
|
|||||||
Reference in new issue
Block a user