#10627: add options for printing matrices
------------------------------+---------------------------------------------
Reporter: jhpalmieri | Owner: jason, was
Type: enhancement | Status: new
Priority: minor | Milestone: sage-4.6.2
Component: linear algebra | Keywords: matrix repr
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
------------------------------+---------------------------------------------
Comment(by iandrus):
Perhaps we could pass a map for how to display things like:
{{{
sage: mat = random_matrix(ZZ, 50)
sage: mat.str({0:'.',1:'+',-1:'-'})
}}}
Then we could map things arbitrarily. It might not as easy to remember or
use, but it would allow the user to do anything they wanted. I can't
think when it might be useful except perhaps to make matrices of group
elements more understandable or for a mathematical puzzle in which the
numbers are encoded as symbols.
Actually it might be useful to show some oft repeated but complicated
elements as a single letter like GAP does when displaying character
tables. For that to be really useful it would be best if it were
automatic, but that's probably too much to ask.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10627#comment:1>
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.