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],
[3, 4],
[5, 6],
You can use np.char.array() objects to do this comparison using np.in1d():
s1 = np.char.array(A[:,0]) + '-' + np.char.array(A[:,1])
s2 = np.char.array(B[:,0]) + '-' + np.char.array(B[:,1])
np.where(np.in1d(s1, s2))[0]
#array([0, 2], dtype=int64)
NOTE: A and B must be of the same data type (int, float, etc) for this to work.