Skip to content
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

new methods for compositions #13243

Closed
saliola opened this issue Jul 12, 2012 · 29 comments
Closed

new methods for compositions #13243

saliola opened this issue Jul 12, 2012 · 29 comments

Comments

@saliola
Copy link

saliola commented Jul 12, 2012

new functionality for the composition constructor:

  • construct a composition from a subset

new functionality for compositions:

  • parent -- returns Compositions()
  • reversed - reverses
  • refinement_splitting
  • refinement_splitting_lengths
  • deprecated refinement in favour of refinement_splitting_lengths
  • partial_sums(self, final=True):
  • to_subset(self, final=False):
  • to_partition(self):
  • shuffle_product(self, other, overlap=False):

new functionality for the set of all compositions:

  • put it in the category of InfiniteEnumeratedSets
  • subset method to extract subsets of composition (by size)

Apply:

Depends on #13109

CC: @sagetrac-chrisjamesberg @sagetrac-sage-combinat @zabrocki

Component: combinatorics

Keywords: compositions, ncsf, sd40

Author: Franco Saliola, Nicolas M. Thiéry, Florent Hivert, Chris Berg

Reviewer: Chris Berg, Mike Zabrocki

Merged: sage-5.3.beta0

Issue created by migration from https://trac.sagemath.org/ticket/13243

@saliola
Copy link
Author

saliola commented Jul 13, 2012

comment:3

Need to fix a dependency error. Patch coming 'soon'.

@saliola
Copy link
Author

saliola commented Jul 15, 2012

only apply this one

@saliola
Copy link
Author

saliola commented Jul 15, 2012

Attachment: trac_13243-new_methods_for_compositions-fs.patch.gz

Attachment: trac_13243-new_methods_for_compositions-fs.2.patch.gz

empty patch (this can be deleted)

@saliola
Copy link
Author

saliola commented Jul 15, 2012

comment:4

The errors were mainly due to the fact that the new category of graded enumerated sets does not yet exist (it exists on the sage-combinat queue, which is why tests passed on my machine). So I removed the two lines related to that.

I also modified a couple of doctests in permutation.py, which was caused by the change the descents method.

@saliola

This comment has been minimized.

@saliola
Copy link
Author

saliola commented Jul 15, 2012

comment:5

Apply: trac_13243-new_methods_for_compositions-fs.patch

@saliola
Copy link
Author

saliola commented Jul 18, 2012

Attachment: trac_13243-rebased_deprecated_function_alias-fs.patch.gz

needed for 5.2.rc0 (updated the call to deprecated_function_alias)

@saliola
Copy link
Author

saliola commented Jul 18, 2012

Dependencies: #13109

@saliola
Copy link
Author

saliola commented Jul 18, 2012

comment:7

Apply: trac_13243-new_methods_for_compositions-fs.patch, trac_13243-rebased_deprecated_function_alias-fs.patch

(for the patchbot)

@saliola

This comment has been minimized.

@saliola
Copy link
Author

saliola commented Jul 20, 2012

comment:9

Note that the patches attached to this ticket are newer than the patches on the sage-combinat queue.

Also, I'm in the process of updating this patch with improvements suggested by Mike. New version will be available soon.

@saliola
Copy link
Author

saliola commented Jul 21, 2012

Attachment: trac_13243-review_changes-fs.patch.gz

changes based on Mike's review

@saliola
Copy link
Author

saliola commented Jul 21, 2012

comment:10

Here is a patch (trac_13243-review_changes-fs.patch), which should be applied on top of the earlier patch, that includes improvements suggested by Mike.

Patchbot:

Apply: trac_13243-new_methods_for_compositions-fs.patch, trac_13243-rebased_deprecated_function_alias-fs.patch, trac_13243-review_changes-fs.patch, trac_13243-documentation_fixes-fs.patch

@saliola
Copy link
Author

saliola commented Jul 21, 2012

Changed reviewer from Chris Berg to Chris Berg, Mike Zabrocki

@saliola
Copy link
Author

saliola commented Jul 21, 2012

comment:13

Attachment: trac_13243-documentation_fixes-fs.patch.gz

Hello Mike,

Here is a final patch fixing some the issues with the documentation. The documentation now builds and renders nicely. Thanks for your suggestions.

I made separate patches so that it is easier for you to look at my recent changes (but if you prefer, I can post one patch). You only need to look at the following two files to see the changes I made after your review of the first patch:

  • trac_13243-review_changes-fs.patch
  • trac_13243-documentation_fixes-fs.patch

Franco

@saliola
Copy link
Author

saliola commented Jul 21, 2012

comment:14

Mike suggested some more documentation improvements. New patch on the way.

@saliola
Copy link
Author

saliola commented Jul 21, 2012

Work Issues: documentation improvements

@saliola
Copy link
Author

saliola commented Jul 21, 2012

improvements to documentation for shuffle_product

@saliola
Copy link
Author

saliola commented Jul 21, 2012

comment:15

Attachment: trac_13243-documentation_fixes_2-fs.patch.gz

Here is a patch with improvements to the documentation of shuffle product.

Patchbot:

Apply: trac_13243-new_methods_for_compositions-fs.patch, trac_13243-rebased_deprecated_function_alias-fs.patch, trac_13243-review_changes-fs.patch, trac_13243-documentation_fixes-fs.patch, trac_13243-documentation_fixes_2-fs.patch

@saliola
Copy link
Author

saliola commented Jul 21, 2012

Changed work issues from documentation improvements to none

@anneschilling
Copy link

comment:18

Hi Franco,

You promised to import these patches also to the sage-combinat queue, since the current patch there completely breaks sage-5.2.rc0. I am confused as to which patches are supposed to be applied. For example trac_13243-rebased_deprecated_function_alias-fs.patch also has a newer version trac_13243-rebased_deprecated_function_alias-fs.2.patch, but this is not the one listed in your list.

Thanks,

Anne

@jdemeyer
Copy link

comment:19

Please clarify which patches have to be applied.

@saliola
Copy link
Author

saliola commented Jul 27, 2012

comment:21

Replying to @jdemeyer:

Please clarify which patches have to be applied.

If I understand correctly, the patchbot doesn't look at the description for the "apply" directive, so I put it in the comments. Should I also include the directive in the description? Is there a preferred syntax for this?

Apply: trac_13243-new_methods_for_compositions-fs.patch, trac_13243-rebased_deprecated_function_alias-fs.patch, trac_13243-review_changes-fs.patch, trac_13243-documentation_fixes-fs.patch, trac_13243-documentation_fixes_2-fs.patch

For humans:

@jdemeyer

This comment has been minimized.

@jdemeyer
Copy link

comment:25

Replying to @saliola:

If I understand correctly, the patchbot doesn't look at the description for the "apply" directive, so I put it in the comments.

I think that's correct yes.

Should I also include the directive in the description?

Yes please!

@saliola
Copy link
Author

saliola commented Jul 27, 2012

comment:26

Replying to @jdemeyer:

Replying to @saliola:

If I understand correctly, the patchbot doesn't look at the description for the "apply" directive, so I put it in the comments.

I think that's correct yes.

Should I also include the directive in the description?

Yes please!

Thank you. I'll make sure to do this from now on!

@jdemeyer
Copy link

jdemeyer commented Aug 1, 2012

Merged: sage-5.3.beta0

@jdemeyer
Copy link

jdemeyer commented Sep 8, 2012

Changed author from Franco Saliola, Nicolas Thiery, Florent Hivert, Chris Berg to Franco Saliola, Nicolas M. Thiéry, Florent Hivert, Chris Berg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants