I am trying to get sage to list the elements of a (finite) finitely
generated matrix group.
It works in version 5.9 installed on a Mac, but not on 6.11 on linux or on
the cloud, which leads me to believe somewhere between 5.9 and 6.11 the
.list() operation for finite matrix groups was compromised.
Here is the code:
x=polygen(QQ,'x')
E.<w>=NumberField(x^2+x+1,'w')
r=matrix([[w,0],[-w^2,1]])
s=matrix([[1,w^2],[0,w]])
G4 = MatrixGroup([r,s])
l = G4.list() # returns the elements of G as a list
Here is the error from the cloud:
Traceback (most recent call last):
File
"/projects/00f50bac-d0a4-44e5-b456-34ae18b9117d/.sagemathcloud/sage_server.py",
line 733, in execute
exec compile(block+'\n', '', 'single') in namespace, locals
File "", line 1, in <module>
File "parent.pyx", line 822, in sage.structure.parent.Parent.__getattr__
(sage/structure/parent.c:6997)
File "misc.pyx", line 251, in sage.structure.misc.getattr_from_other_class
(sage/structure/misc.c:1606)
AttributeError: 'FinitelyGeneratedMatrixGroup_generic_with_category' object has
no attribute 'list'
Here is the error from 6.11 on a linux machine:
AttributeError Traceback (most recent call last)
<ipython-input-9-a6e94ecf7e4a> in <module>()
----> 1 G4.list()
/opt/sage-6.1.1-x86_64-Linux/local/lib/python2.7/site-packages/sage/structure/parent.so
in sage.structure.parent.Parent.__getattr__ (sage/structure/parent.c:6997)()
/opt/sage-6.1.1-x86_64-Linux/local/lib/python2.7/site-packages/sage/structure/misc.so
in sage.structure.misc.getattr_from_other_class
(sage/structure/misc.c:1606)()
AttributeError: 'FinitelyGeneratedMatrixGroup_generic_with_category' object
has no attribute 'list'
And as I said before, it works and "l" prints the list of 24 matrices on
the 5.9 version on a mac.
Also, 5.9 says that type(G4) is
<class
'sage.groups.matrix_gps.finitely_generated.FinitelyGeneratedMatrixGroup_gens_with_category'>
But the cloud and 6.11 say
<class
'sage.groups.matrix_gps.finitely_generated.FinitelyGeneratedMatrixGroup_generic_with_category'>
--
You received this message because you are subscribed to the Google Groups
"sage-support" 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-support.
For more options, visit https://groups.google.com/d/optout.