I have 2 numpy arrays. Eg.
A = [[1,2],[3,4],[5,6]] B = [[5,6],[1,4],[6,5],[1,2]] I want to get the matching elements in the 2 arrays. i.e [[1,2],[5,6]]
The arrays that I am using in my code are very large. Is there any fast way of implementing it, without using for loop and comparing each elements?