If I have a large array and a small array, for example
A = np.array([1,2,3])
B = np.array([3,4,5,6,7,8,2,1])
I can use np.intersect1d to get the same value,
but if I want to get the index (in large array B)of same value, for this example,it should be [0,6,7],is there any command to get it?