Research Article

Improved Matrix Multiplication by Changing Loop Order

Table 4

Results extracted by changing row and columns using serial code.

NLoop order (i is the outermost loop)Time taken (seconds)
C++ (serial code)Java (serial code)Python (serial code)

500i, j, k0.3120.3242.345
1000i, j, k2.3343.9325.456
1500i, j, k10.88116.24523.453
2000i, j, k37.38243.88122.304
2500i, j, k97.293124.593566.452