I want to turn A into B:
A = [0, 4, 1, 3, 2]
B = [0, 2, 4, 3, 1]
B represents turning the values of A into indices and the indices of A into values. How do I do this quickly with a numpy array A?
I want to turn A into B:
A = [0, 4, 1, 3, 2]
B = [0, 2, 4, 3, 1]
B represents turning the values of A into indices and the indices of A into values. How do I do this quickly with a numpy array A?