Let's suppose I have a numpy matrix variable called MATRIX with 3 coordinates: (x, y, z).
Is acessing the matrix's value through the following code
myVar = MATRIX[0,0,0]
equal to
myVar = MATRIX[0,0][0]
or
myVar = MATRIX[0][0,0]
?
What about if I have the following code?
myTuple = (0,0)
myScalar = 0
myVar = MATRIX[myTuple, myScalar]
Is the last line equivalent to doing
myVar = MATRIX[myTuple[0], myTuple[1], myScalar]
I have done simple tests and it seems so, but maybe that is not so in all the cases. How do square brackets work in python with numpy matrices? Since day one I felt confused as how they work.
Thanks