-
Notifications
You must be signed in to change notification settings - Fork 306
Add derangements #946
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add derangements #946
Conversation
Note that the improved algorithm for |
Update per 17 jan
|
Issue reference
Follow-up from #938
Implementing some recommendations from #937
I aim to keep this PR up to date in case the discussions there lead to required changes.
I keep this PR as a Draft until 10.6.0 is released (unless the maintainers want to include this in there still).
Changes
Following the discussion in #937:
derangements
to be based on the input index of each element, instead of its value (thanks bbayles)by_index
to False. (If other ways are preferred, let me know)distinct_derangements
is updated in a similar wayChecks and tests
I confirm to have run
make all-checks
(with everything passing) before submitting this PR.Update per 17 jan
make all-checks
still works