I am new to using numpy and one thing that I really don't understand is indexing arrays.
In the tentative tutorial there is this example:
>>> a = arange(12).reshape(3,4)
>>> b1 = array([False,True,True]) # first dim selection
>>> b2 = array([True,False,True,False]) # second dim selection
>>>
>>> a[b1,b2] # a weird thing to do
array([ 4, 10])
I have no idea why it does that last thing. Can anyone explain that to me?
Thanks!