| 45 | |
| 46 | |
| 47 | int** add(int** M1, int** M2, int n) { |
| 48 | int** temp = initializeMatrix(n); |
| 49 | for (int i = 0; i < n; i++) |
| 50 | for (int j = 0; j < n; j++) |
| 51 | temp[i][j] = M1[i][j] + M2[i][j]; |
| 52 | return temp; |
| 53 | } |
| 54 | |
| 55 | int** subtract(int** M1, int** M2, int n) { |
| 56 | int** temp = initializeMatrix(n); |
no test coverage detected