#13774: Irreducible Cartan types created as reducibles
-------------------------------------+-------------------------------------
Reporter: JesusTorrado | Owner: joyner
Type: defect | Status: needs_review
Priority: minor | Milestone: sage-6.2
Component: combinatorics | Resolution:
Keywords: CartanType | Merged in:
Reducible Irreducible | Reviewers: Travis Scrimshaw
Authors: Jesús Torrado | Work issues:
Report Upstream: N/A | Commit:
Branch: | 6a926949339e04bfef7d0bb10f2bae6f75f325a8
public/combinat/root_systems/reducibles-13774| Stopgaps:
Dependencies: |
-------------------------------------+-------------------------------------
Comment (by tscrim):
I can still reproduce it:
{{{
# This is the expected behavior
sage: c = CartanType([['A',2], ['D',4]]); c
A2xD4
sage: c.is_irreducible()
False
sage: c.cartan_matrix()
[ 2 -1| 0 0 0 0]
[-1 2| 0 0 0 0]
[-----+-----------]
[ 0 0| 2 -1 0 0]
[ 0 0|-1 2 -1 -1]
[ 0 0| 0 -1 2 0]
[ 0 0| 0 -1 0 2]
sage: c = CartanType(['A',2]); c
['A', 2]
sage: c.cartan_matrix()
[ 2 -1]
[-1 2]
# This is wrong
sage: c = CartanType([['A',2]]); c
A2
sage: c.is_irreducible()
False
sage: c.cartan_matrix()
---------------------------------------------------------------------------
ValueError Traceback (most recent call
last)
...
ValueError: matrix is immutable; please change a copy instead (i.e., use
copy(M) to change a copy of M).
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/13774#comment:12>
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.