A simply example of numpy indexing:
In: a = numpy.arange(10)
In: sel_id = numpy.arange(5)
In: a[sel_id]
Out: array([0,1,2,3,4])
How do I return the rest of the array that are not indexed by sel_id? What I can think of is:
In: numpy.array([x for x in a if x not in a[id]])
out: array([5,6,7,8,9])
Is there any easier way?
sel_id(and it's negation) down the road? Also, are you interested in the multi-dimensional case, or just the 1D case?