MCPcopy Create free account
hub / github.com/anupam-kumar-krishnan/Competitive_Programming / add

Function add

All Algorithms/strassen.cpp:47–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45
46
47int** 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
55int** subtract(int** M1, int** M2, int n) {
56 int** temp = initializeMatrix(n);

Callers 3

divideAndConquerFunction · 0.70
strassenMultiplyFunction · 0.70
addTwoListsMethod · 0.50

Calls 1

initializeMatrixFunction · 0.85

Tested by

no test coverage detected