get index of elements in array `A` that occur in another array `B`,"np.where(np.in1d(A, B))[0]"