Dear Support,
Viewing block matrices "nicely" seems to be difficult in Sage.
sage: A=matrix([[1]])
sage: B=matrix([[2]])
sage: C=matrix([[3]])
sage: D=matrix([[4]])
sage: BM=block_matrix([A,B,C,D])
sage: BM
[1|2]
[-+-]
[3|4]
Okay, this is fine but a little clunky. Let's try something nicer:
sage: show(BM)
Upon which a dvi viewer opens up, unfortunately not a very nice one...
and shows the block matrix with only a vertical dividing line, not a
horizontal one!
Okay, let's try the notebook:
{{{id=0|
A=matrix([[1]])
B=matrix([[2]])
C=matrix([[3]])
D=matrix([[4]])
///
}}}
{{{id=1|
BM=block_matrix([A,B,C,D]);BM
///
[1|2]
[-+-]
[3|4]
}}}
So far so good, but when I click "Typeset" to get a LaTeXed matrix...
{{{id=1|
BM=block_matrix([A,B,C,D]);BM
///
<html><span class="math">\left(\begin{array}{r|r}
1 & 2 \\
3 & 4
\end{array}\right)</span></html>
}}}
Which as you can see does NOT have any "blockiness" to it at all.
Very pretty, but not a block matrix, at least not identifiably so.
But is this a bug? I'm not sure, as there might be good reasons for
these viewing options I am not aware of. If it is, I'll be happy to
post a trac ticket.
Thanks,
- kcrisman
--~--~---------~--~----~------------~-------~--~----~
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-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---