Given two 2D numpy arrays containing x and y coordinates, how can I find identical pairs in another array with identical dimensions?
For example, I have these arrays:
array([[ 2, 1, 3, 4],
[ 4, 3, 5, 10]])
and
array([[ 0, 2, 3, 4],
[ 3, 4, 11, 10]])
I would expect to find that the pairs (2, 4)
and (4, 10)
would be detected as existing in both arrays.
Thanks very much in advance!