Can anyone help me understand this Python array access syntax?

Viewed 66

I am looking into this numba example:

https://numba.pydata.org/numba-doc/dev/cuda/examples.html

There is a section where part of an array is loaded into another:

sA[tx, ty] = A[x, ty + i * TPB]

I see that sA is a 2d array of size 16x16. I know I can access 2d array positions with sA[i][j], but this syntax using a comma inside the [] I don really understand.

What is that doing?

0 Answers
Related