You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Perm16::unrankSJT(m, n); returns a Perm16 padded by 0 at the end unless m is 16, which is not a permutation. I'm not sure if this is intentional, but it seems weird to me.
Secondly, because the argument r is an int so if m is 16, then it isn't possible to get every permutation of degree 16 from this function (since $16! > 2 ^ {31}$.
Thirdly, if negative values are input, then the input is sometimes not a permutation:
There are a number of issues with this function:
Perm16::unrankSJT(m, n);returns aPerm16padded by0at the end unlessmis16, which is not a permutation. I'm not sure if this is intentional, but it seems weird to me.Secondly, because the argument$16! > 2 ^ {31}$ .
ris anintso ifmis16, then it isn't possible to get every permutation of degree16from this function (sinceThirdly, if negative values are input, then the input is sometimes not a permutation:
(again the example comes from the python bindings, so looks a little off here).