I am trying to perform a comparison between the rows of two matrices A and B with the same number of columns.
In matlab the command ismember(a, b, 'rows')
returns a vector containing 1 where the rows of A are also rows of B and 0 otherwise, and also returns the highest index in B for each element in A that is a member of B.
[tf, index] = ismember(A, B, 'rows');
Is there an equivalent function in python? Any ideas how to do it?