On Apr 8, 2009, at 12:07 , gerhard wrote:

> Print methods for matrices with subdivisions
>
> let M be a matrix over QQ:
>    subdivisions are printed fine
> over GF(2):
>    M.get_subdivisions() shows the subdivisions are defined,
>    but the print method does not know about them.

Yup.  Most matrix classes seem to use a common method for printing,  
while the 'mod 2' matrix implementation has its own "stringify" method.

There may be a good explanation for this, but commenting out the mod2  
method seems to have the right effect without damaging anything else.   
At least with minimal testing.

> The show methods cannot handle subdivisions altogether.

I'm not sure I understand.  For other than the mod 2 elements, show(X)  
produces an image of a subdivided matrix.  Do you mean just in the mod  
2 case?

> Are there any plans to enhance these printing methods?

I think it qualifies as a bug, and I've created a Trac report for the  
problem:
    <http://trac.sagemath.org/sage_trac/ticket/5714>

Thanks for reporting this.

Justin

--
Justin C. Walker, Curmudgeon-At-Large
Director
Institute for the Enhancement of the Director's Income
--------
"Weaseling out of things is what separates us from the animals.
  Well, except the weasel."
       - Homer J Simpson
--------



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

Reply via email to