I am learning numpy from the start page : https://numpy.org/devdocs/user/quickstart.html There is a confusing part that makes me stop.
>>> a = np.arange(12).reshape(3, 4)
>>> a
array([[ 0, 1, 2, 3],
[ 4, 5, 6, 7],
[ 8, 9, 10, 11]])
>>> b1 = np.array([False, True, True]) # first dim selection
>>> b2 = np.array([True, False, True, False]) # second dim selection
>>> a[b1, b2]
array([ 4, 10])
Could you please provide any hints or explains to help me understand this logic? The output that I expect is
array([[ 4, 6],
[ 8, 10]])