Hi 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? Thanks