#17054: Make a deeper copy of rigged configurations
-------------------------------------+-------------------------------------
Reporter: tscrim | Owner: sage-combinat
Type: defect | Status: needs_review
Priority: major | Milestone: sage-6.4
Component: combinatorics | Resolution:
Keywords: rigged | Merged in:
configurations | Reviewers:
Authors: Travis Scrimshaw | Work issues:
Report Upstream: N/A | Commit:
Branch: | a67b5a4814f2f66e7d2cf07a93ce8faad1159a0d
public/rigged_configurations/deepcopy-17054| Stopgaps:
Dependencies: |
-------------------------------------+-------------------------------------
Old description:
> Because it modifies the vacancy numbers:
> {{{
> sage: B = crystals.infinity.RiggedConfigurations(['A',2])
> sage: RC = RiggedConfigurations(['A',2,1], [[1,1]]*4 + [[2,1]]*4)
> sage: x = B.an_element().f_string([2,2,1,1,2,1,2,1])
> sage: ascii_art(x)
> -4[ ][ ][ ][ ]-4 -4[ ][ ][ ][ ]0
> sage: ascii_art(RC(x))
> 0[ ][ ][ ][ ]-4 0[ ][ ][ ][ ]0
> sage: ascii_art(x)
> 0[ ][ ][ ][ ]-4 0[ ][ ][ ][ ]0
> }}}
New description:
The initializer for rigged configuration elements modifies the vacancy
numbers of the rigged partitions:
{{{
sage: B = crystals.infinity.RiggedConfigurations(['A',2])
sage: RC = RiggedConfigurations(['A',2,1], [[1,1]]*4 + [[2,1]]*4)
sage: x = B.an_element().f_string([2,2,1,1,2,1,2,1])
sage: ascii_art(x)
-4[ ][ ][ ][ ]-4 -4[ ][ ][ ][ ]0
sage: ascii_art(RC(x))
0[ ][ ][ ][ ]-4 0[ ][ ][ ][ ]0
sage: ascii_art(x)
0[ ][ ][ ][ ]-4 0[ ][ ][ ][ ]0
}}}
We make a deeper copy of the rigged configurations in the
`_element_constructor_` (not in the initializer because `e` and `f` create
their own copies already).
--
Comment (by tscrim):
Note that after passing through the constructor, the original element
changes.
--
Ticket URL: <http://trac.sagemath.org/ticket/17054#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 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/d/optout.