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
comparison of permutation and standard permutation #21069
Comments
comment:1
I think this is more an issue with the default
However, I don't agree with the argument that "same representation => equality". Should the partition |
comment:2
Replying to @tscrim:
Ok, I agree. |
comment:3
Set to invalid. |
comment:4
I am going to recycle this ticket to address the issue above. |
This comment has been minimized.
This comment has been minimized.
comment:5
Replying to @tscrim:
Ok. |
comment:6
While I was at it, I fixed the New commits:
|
Author: Travis Scrimshaw |
Commit: |
comment:7
I just realized the branch is named wrong... |
Changed branch from public/combinat/partitions_std_set-21069 to public/combinat/permutations_std_set-21069 |
comment:9
Maybe you want |
comment:10
No, I want |
comment:11
Oh, the word "permutation" is meant in the non-algebraic meaning! Makes sense then. Will look at the rest of the code now. |
comment:12
OK. Two issues:
|
comment:13
Replying to @darijgr:
No because nobody should be using
I don't understand what you're asking. If you're saying putting |
comment:14
|
comment:15
Replying to @darijgr:
There are already such tests, so it really should not unless you're constantly doing things like |
comment:16
OK, the slowdown is in the single-digit percentages (just checked). The code LGTM then. To be safe, what do the guardians of the object hierarchy think about it? |
comment:17
2 failing doctests, see bot |
Reviewer: Darij Grinberg |
comment:19
Failure was due to me not using Python3-style list. Fixed and doctests now pass. Since there were no comments from Darij's request in comment:16, I'm allowing myself to set this to a positive review. |
Changed branch from public/combinat/permutations_std_set-21069 to |
Because
ClonableArray
also takes the parent into consideration of equality checking, we currently have the following:I propose to have
Permutations(range(n))
be identical toPermutations(n)
.CC: @sagetrac-sage-combinat @darijgr @nthiery @simon-king-jena
Component: coercion
Author: Travis Scrimshaw
Branch/Commit:
dc5c35a
Reviewer: Darij Grinberg
Issue created by migration from https://trac.sagemath.org/ticket/21069
The text was updated successfully, but these errors were encountered: