I have a list of tuples (of integers), which is quite long to loop over. I also have a numpy array. I want to get the element given by each tuple in the list, without having to loop over the list. Something like this:
mySum = np.sum(myArray(myList))
which of course doesn't work. Is there a way for me to make this happen?
The list looks something like this: myList = [(1,2,2),(0,0,2),...,(100,122,200)].
myArray is a 3d numpy array.
myArraya numpy array with three dimensions?myArraylook like?