Multiply Funktion in matrix.c

This commit is contained in:
Mihaela Creciun committed 2026-11-12 09:55:43 +01:00
1 parent 5583ecd1ba
commit e30fc66453
1 file changed
+4
+4
View File
@@ -31,6 +31,10 @@ Matrix add(const Matrix matrix1, const Matrix matrix2)
Matrix multiply(const Matrix matrix1, const Matrix matrix2)
{
<<<<<<< Updated upstream
=======
>>>>>>> Stashed changes
// Überprüfen, ob die Matrizen gültig sind und ob ihre Dimensionen eine Multiplikation erlauben
if (matrix1.buffer == NULL || matrix2.buffer == NULL || matrix1.cols != matrix2.rows)
{