Skip to content

Cleanup of integer compositions #5600

@nthiery

Description

@nthiery
  • Documentation improvements
  • Fixes some of http://wiki.sagemath.org/combinat/Weirdness
  • Composition(l) accepts any iterable l, and in particular a tuple
  • New functionalities:
    • concatenation (as __add__ and sum)
    • size
    • fatter, finer, fatten (refinement of compositions)
  • Uses IntegerListsLex (fast iteration, ...) instead of not any better specific code
    Note: this changes the iteration order to inverse lexicographic,
    and iteration changes the iteration order for set partitions, skew
    partitions, and skew tableaux.

CC: @sagetrac-sage-combinat @jbandlow

Component: combinatorics

Keywords: integer compositions

Author: Nicolas M. Thiéry

Reviewer: Dan Drake, Jason Bandlow, Minh Van Nguyen

Merged: Sage 4.1.2.alpha0

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions