NumPy indexing using List?
<p>SOF,</p>

<p>I noticed an interesting NumPy demo in this URL:</p>

<p><a href="http://cs231n.github.io/python-numpy-tutorial/" rel="nofollow">http://cs231n.github.io/python-numpy-tutorial/</a></p>

<p>I see this:</p>

<pre><code>import numpy as np

a = np.array([[1,2], [3, 4], [5, 6]])

# An example of integer array indexing.
# The returned array will have shape (3,) and 

print( a[[0, 1, 2], [0, 1, 0]] )
# Prints "[1 4 5]"
</code></pre>

<p>I understand using integers as index arguments:</p>

<pre><code>a[1,1]
</code></pre>

<p>and this syntax:</p>

<pre><code>a[0:2,:]
</code></pre>

<p>Generally,
If I use a list as index syntax, what does that mean?</p>

<p>Specifically,
I do not understand why:</p>

<pre><code>print( a[[0, 1, 2], [0, 1, 0]] )
# Prints "[1 4 5]"
</code></pre>