Given two real rectangular matrices, $A$ and $B$, how can I tell if they are equal up to a permutation of their rows/column without trying all possible permutations?
(This is closely related to the question I asked yesterday, Algorithm to determine matrix equivalence, but which seems too specific/complicated to receive a response. Maybe I'll be luckier with this simpler one!
You can sort the rows / columns and then check equality. And to sort, you can use the lexicographical order.