#10008: List / Iter on the element of a MatrixGroup over number field.
----------------------------+-----------------------------------------------
   Reporter:  nborie        |       Owner:  joyner
       Type:  defect        |      Status:  new   
   Priority:  major         |   Milestone:        
  Component:  group theory  |    Keywords:        
     Author:                |    Upstream:  N/A   
   Reviewer:                |      Merged:        
Work_issues:                |  
----------------------------+-----------------------------------------------
 All is in this log

 {{{
 sage: K = CyclotomicField(3)
 sage: t = K.gen()
 sage: M = Matrix([[1,0,0],[0,t,0],[0,0,t^2]])
 sage: G = MatrixGroup([M])
 sage: G.list()
 ---------------------------------------------------------------------------
 AttributeError                            Traceback (most recent call
 last)

 /home/nicolas/<ipython console> in <module>()

 /opt/sage/local/lib/python2.6/site-
 packages/sage/groups/matrix_gps/matrix_group.pyc in list(self)
     573         n = F.degree()
     574         p = F.characteristic()
 --> 575         a = F.prime_subfield().multiplicative_generator()
     576         b = F.multiplicative_generator()
     577

 /opt/sage/local/lib/python2.6/site-packages/sage/structure/parent.so in
 sage.structure.parent.Parent.__getattr__ (sage/structure/parent.c:5501)()

 /opt/sage/local/lib/python2.6/site-packages/sage/structure/parent.so in
 sage.structure.parent.getattr_from_other_class
 (sage/structure/parent.c:2765)()

 /opt/sage/local/lib/python2.6/site-packages/sage/structure/parent.so in
 sage.structure.parent.raise_attribute_error
 (sage/structure/parent.c:2637)()

 AttributeError: 'RationalField_with_category' object has no attribute
 'multiplicative_generator'
 sage: G.cardinality()
 3
 sage: [Matrix(K,m) for m in gap(G).List()]
 [
 [         1          0          0]  [         1          0          0]
 [         0 -zeta3 - 1          0]  [         0      zeta3          0]
 [         0          0      zeta3], [         0          0 -zeta3 - 1],

 [1 0 0]
 [0 1 0]
 [0 0 1]
 ]
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10008>
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.

Reply via email to