I wonder if there is any smart way checking the indices of every individual elements in an array, in another array.
For example,given an input
I want to check where is each element of b is located in a
for example: for b(1), the location in a) would be:
for b(3), it then would be:
of course I can do it using For loop, for speed reason I need to avoid it.