If I do:

sage: MS = MatrixSpace(IntegerModRing(9), 5,5)
sage: G = MS([[5, 0, 0, 0, 4],[4, 5, 0, 0, 0],[0, 4, 5, 0, 0],[0, 0,4,
5, 0], [0, 0, 0, 4, 5]])
sage: G.base_ring()
Ring of integers modulo 9

is there a way to get the base ring as an integer?, i.e. I want to
know the base ring to work with it in a cython program,let's say I
want to do arithmetic with the base ring integer.


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to