Skip to content

Commit 324aee9

Browse files
bugfix in example, issue #195
1 parent 856cc0f commit 324aee9

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

doc/source/matrix_multiplication.ipynb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,11 @@
314314
" int k, kb;\n",
315315
"\n",
316316
" float sum[tile_size_y][tile_size_x];\n",
317+
" for (int i=0; i < tile_size_y; i++) {\n",
318+
" for (int j=0; j < tile_size_x; j++) {\n",
319+
" sum[i][j] = 0.0;\n",
320+
" }\n",
321+
" } \n",
317322
"\n",
318323
" for (k = 0; k < WIDTH; k += block_size_x) {\n",
319324
"\n",
@@ -430,7 +435,7 @@
430435
],
431436
"metadata": {
432437
"kernelspec": {
433-
"display_name": "Python 3",
438+
"display_name": "Python 3 (ipykernel)",
434439
"language": "python",
435440
"name": "python3"
436441
},
@@ -444,7 +449,7 @@
444449
"name": "python",
445450
"nbconvert_exporter": "python",
446451
"pygments_lexer": "ipython3",
447-
"version": "3.7.9"
452+
"version": "3.9.12"
448453
}
449454
},
450455
"nbformat": 4,

0 commit comments

Comments
 (0)