diff --git a/matrix.c b/matrix.c index 4d1fffa..573ff60 100644 --- a/matrix.c +++ b/matrix.c @@ -12,7 +12,8 @@ Matrix createMatrix(unsigned int rows, unsigned int cols) m.cols = cols; m.data = malloc (rows * cols * sizeof(int)); - + + return m; } void clearMatrix(Matrix *matrix) @@ -73,6 +74,7 @@ Matrix add(const Matrix matrix1, const Matrix matrix2) } } + return result; } Matrix multiply(const Matrix matrix1, const Matrix matrix2)