#12278: misleading (outdated) docstring in partitions_restricted
----------------------------------------+-----------------------------------
Reporter: AlexGhitza | Owner: sage-combinat
Type: defect | Status: new
Priority: minor | Milestone: sage-5.4
Component: combinatorics | Resolution:
Keywords: partitions docstring | Work issues:
Report Upstream: N/A | Reviewers:
Authors: | Merged in:
Dependencies: | Stopgaps:
----------------------------------------+-----------------------------------
Comment (by tscrim):
It is saying the last entries in the partition are `p` or using lex
ordering reading right-to-left. In an bug-free world:
{{{
sage: Partitions(4, ending=[2,2]).list()
[[2,2]]
sage: Partitions(4, ending=[1,1]).list()
[[2,1,1], [1,1,1,1]]
}}}
With regards to the lex ordering, I personally think of it as reverse lex
ordering (reading right-to-left), but Stanley in ECII calls reading left-
to-right rev lex (thus right-to-left would be lex ordering).
For example, what I think of as lex ordering (reading left-to-right):
{{{
[4,1,1] > [3,2,1]
}}}
and rev lex (reading right to left):
{{{
[3,2,1] > [4,1,1]
}}}
which is opposite from Stanley.
Could someone with more experience state what the general convention is in
partitions, or it this something we just need to state in the
documentation (such as using 0-indexing)?
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12278#comment:8>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.