I want to get the indices of the intersecting rows of a main numpy 2d array A, with another one B.
A = array([[1,2],
[1,3],
[2,3],
[2,4],
[2,5],
[3,4]
[4,5]])
B = array([[1,2],
[3,2],
[2,4]])
result=[0, -2, 3]
##Note that the intercept 3,2 must assign (-) because it is the opposite
Where this should return [0, -2, 3] based on the indices of array A.
Thank you!