-
-
Notifications
You must be signed in to change notification settings - Fork 482
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
sage.combinat.permutation.from_cycles produces wrong result when 'cycles' is a generator #34662
Comments
Branch: public/34662 |
Author: Dave Morris |
comment:3
Thanks for pointing out this bug. I rewrote the code to only access the input once, so it works with generators. The new code also verifies the input without sorting a list (which takes more than linear time). New commits:
|
Commit: |
Changed stopgaps from todo to none |
comment:4
The test of
It would be better to just explicit convert the inputs to Likewise, do Please factor out the |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:6
Thanks for your comments. I think I made the changes that you suggested. |
Reviewer: Travis Scrimshaw |
comment:7
Thanks. LGTM. |
comment:8
Thanks! |
Changed branch from public/34662 to |
We have
where the former result is correct and the latter is wrong.
Component: combinatorics
Author: Dave Morris
Branch/Commit:
af2f762
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/34662
The text was updated successfully, but these errors were encountered: