generated from freudenreichan/info2Praktikum-NeuronalesNetz
added if clause to check for fittig matrix dimensions
This commit is contained in:
parent
6124b38e8d
commit
8d4b56f703
5
matrix.c
5
matrix.c
@ -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;
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user