Skip to content

Commit

Permalink
feat: loop interchange 1 lab done
Browse files Browse the repository at this point in the history
  • Loading branch information
NekrozQliphort committed Oct 26, 2024
1 parent 5533d8b commit fe50fb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions labs/memory_bound/loop_interchange_1/solution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ void multiply(Matrix &result, const Matrix &a, const Matrix &b) {
zero(result);

for (int i = 0; i < N; i++) {
for (int j = 0; j < N; j++) {
for (int k = 0; k < N; k++) {
for (int k = 0; k < N; k++) {
for (int j = 0; j < N; j++) {
result[i][j] += a[i][k] * b[k][j];
}
}
Expand Down

0 comments on commit fe50fb0

Please sign in to comment.