#9112: adding maximum entry option to SemistandardTableaux()
-----------------------------+----------------------------------------------
Reporter: QuantumKing | Owner: sage-combinat
Type: enhancement | Status: new
Priority: major | Milestone: sage-4.4.3
Component: combinatorics | Keywords: semistandard tableaux
Author: Eric Webster | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-----------------------------+----------------------------------------------
Comment(by QuantumKing):
Replying to [comment:4 mhansen]:
> After #8910, you'll be able to do something like
>
> {{{
> sage: S = SemistandardTableaux([3,2,1])
> sage: s = S.random_element()
> sage: s
> [[2, 2, 2], [3, 5], [4]]
> sage: s.parent() # after #8910
> Semistandard tableaux of shape [3, 2, 1]
> }}}
>
> If you had a different parent such as "Semistandard tableaux of shape
[3, 2, 1] with maximum entry 8" then you could get at the 8 from the
parent method of the tableaux.
>
> I see this as similar to the following example
>
> {{{
>
> sage: R = Integers(6)
> sage: f = R(1); f
> 1
> sage: f.parent().order()
> 6
> }}}
>
> Here, the element {{{f}}} does not print out that it is 1 mod 6. It
just prints out 1.
Ok, I still don't really see what is wrong with printing the maximum
element. In your example, the patch would change it to:
{{{
sage: S = SemistandardTableaux([3,2,1])
sage: s = S.random_element()
sage: s
[[2, 2, 2], [3, 5], [4]]
sage: s.parent() # after #8910
Semistandard tableaux of shape [3, 2, 1] and maximum entry 6 # after #9112
}}}
But you think there should be a method which returns the maximum entry?
Like:
{{{
sage: S = SemistandardTableaux([3,2,1])
sage: s = S.random_element()
sage: s
[[2, 2, 2], [3, 5], [4]]
sage: s.parent() # after #8910
Semistandard tableaux of shape [3, 2, 1]
sage: s.parent().max_entry()
6
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9112#comment:5>
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.