Skip to content

Commit 72ca412

Browse files
committed
Fix bug in array index
1 parent d2feffb commit 72ca412

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source-code/numba.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@
10121012
" x_stride, y_stride = cuda.gridsize(2)\n",
10131013
" for i in range(x, Z.shape[0], x_stride):\n",
10141014
" for j in range(y, Z.shape[1], y_stride):\n",
1015-
" nr_steps[j, i] = 0\n",
1015+
" nr_steps[i, j] = 0\n",
10161016
" z = Z[i][j]\n",
10171017
" while z.real*z.real + z.imag*z.imag < np.float32(2.0) and nr_steps[j][i] < max_steps: \n",
10181018
" z = z*z + c\n",
@@ -1575,7 +1575,7 @@
15751575
"name": "python",
15761576
"nbconvert_exporter": "python",
15771577
"pygments_lexer": "ipython3",
1578-
"version": "3.9.7"
1578+
"version": "3.10.8"
15791579
}
15801580
},
15811581
"nbformat": 4,

0 commit comments

Comments
 (0)