-
-
Notifications
You must be signed in to change notification settings - Fork 481
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
Weird multiplication by identity in set_partition_ordered.py #14883
Comments
This comment has been minimized.
This comment has been minimized.
comment:1
Attachment: trac_14883-remove_times_id-dg.patch.gz |
comment:2
patch does not apply, maybe because the dependency is not written correctly, let us see. |
Changed dependencies from 14772 to #14772 |
comment:3
Oops, the dependency definitely needed a hash. But how does that affect the failure of the patch? Do you have a bot which pulls dependencies automatically? |
comment:4
yes, the patchbot is smart enough to do that, indeed. Click on the red circle and you will see ! |
comment:5
Oh, the patchbot. I'm not (yet) smart enough to understand its output... |
Reviewer: Travis Scrimshaw |
comment:6
Looks good to me. |
Merged: sage-5.12.beta4 |
See the attached patch which, I hope, speaks for itself. I don't see any reason why that permutation had to be multiplied by an identity permutation. I thought it might have been meant to coerce the permutation into a larger symmetric group or to avoid some corner-case bugs, but this doesn't seem to be an issue (cf. the doctests I added). Also, notice that
OrderedSetPartitions
class does already check for the set and the composition to be of the same size, whereas the un-exportedOrderedSetPartitions_scomp
class throws various errors if they aren't (both before and after my patch). The patch has a minor but nontrivial effect on speed:now takes 6.75 rather than 7.67 ms.
Depends on #14772
Depends on #8386
Depends on #14519
Depends on #14808
Depends on #14143
Depends on #14015
Depends on #14516
Component: combinatorics
Keywords: combinat, ordered set partitions, permutations
Author: Darij Grinberg
Reviewer: Travis Scrimshaw
Merged: sage-5.12.beta4
Issue created by migration from https://trac.sagemath.org/ticket/14883
The text was updated successfully, but these errors were encountered: