Given the following example
d = array([[1, 2, 3],
[1, 2, 3],
[1, 3, 3],
[4, 4, 4],
[5, 5, 5]
])
To get the sub-array containing 1 in the first column:
d[ d[:,0] == 1 ]
array([[1, 2, 3],
[1, 2, 3],
[1, 3, 3]])
How to get (without loops) the sub-array containing 1 and 5? Shouldn't be something like
d[ d[:,0] == [1,5] ] # ---> array([1, 2, 3])
which does not work?