#15282: Labelling of product posets seem to normalize the labels of the posets
-------------------------------------------------+-------------------------
Reporter: darij | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-5.13
Component: categories | Resolution:
Keywords: posets, finite_posets, sage- | Merged in:
combinat | Reviewers:
Authors: | Work issues:
Report Upstream: N/A | Commit:
Branch: | Stopgaps:
Dependencies: |
-------------------------------------------------+-------------------------
Description changed by darij:
Old description:
> When taking the product of two posets, apparently both posets are getting
> relabelled:
>
> {{{
> sage: A = Posets.ChainPoset(3)
> sage: B = A.product(A).product(A)
> sage:
> sage: B[0] # one would expect (0, 0, 0)
> (0, 0)
> sage: B[1] # but no
> (0, 1)
> sage: B[2] # instead, the first coordinate is what really should be
> (0, 2)
> sage: B[3] # 3 * the first coordinate + the second coordinate
> (1, 0)
> sage: B[4] # while the second coordinate is OK
> (1, 1)
> sage: B[5]
> (1, 2)
> sage: B[6]
> (2, 0)
> sage: B[7]
> (2, 1)
> sage: B[8]
> (2, 2)
> sage: B[9]
> (3, 0)
> sage: B[10]
> (6, 0)
> sage: B.show()
> }}}
>
> This doesn't exactly help coding.
New description:
When taking the product of two posets, apparently both posets are getting
relabelled:
{{{
sage: A = Posets.ChainPoset(3)
sage: B = A.product(A).product(A)
sage:
sage: B[0] # one would expect (0, 0, 0)
(0, 0)
sage: B[1] # but no
(0, 1)
sage: B[2] # instead, the first coordinate is what really should be
(0, 2)
sage: B[3] # 3 * the first coordinate + the second coordinate
(1, 0)
sage: B[4] # while the second coordinate is OK
(1, 1)
sage: B[5] # but only because the second factor was already
(1, 2)
sage: B[6] # labelled with 0, 1, 2
(2, 0)
sage: B[7]
(2, 1)
sage: B[8]
(2, 2)
sage: B[9]
(3, 0)
sage: B[10]
(6, 0)
sage: B.show()
}}}
This doesn't exactly help coding.
--
--
Ticket URL: <http://trac.sagemath.org/ticket/15282#comment:2>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.