Python equivalent for matlab's perms
Python has a built-in function called itertools.permutations. You can call it on any iterable in python and it returns all full length permutations.
Is there an equivalent method in numpy or scipy for matlab's perms function? In matlab, perms returns a matrix of all possible permutations of the input in reverse lexicographical order.