#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: | Keywords: posets, finite_posets, sage-
categories | combinat
Merged in: | Authors:
Reviewers: | Report Upstream: N/A
Work issues: | Branch:
Commit: | Dependencies:
Stopgaps: |
-------------------------+-------------------------------------------------
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.
--
Ticket URL: <http://trac.sagemath.org/ticket/15282>
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.