Status: Accepted
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 2866 by asmeu...@gmail.com: Pretty printing of empty matrices
http://code.google.com/p/sympy/issues/detail?id=2866
Right now, if either of the dimensions of an empty Matrix is 0, we pretty
print it as []. But we have:
In [43]: Matrix([[], [], []]).shape
Out[43]: (3, 0)
So I think we should print matrices with shape (n, 0) [[], [], ..., []].
The question, then, is how to print matrices with shape (0, n). I
originally though to print it as
[]
[]
...
[]
but this is actually "off by one", i.e., if we print a 2 by 0 matrix as
[]
[]
then it will not be consistant with the 0 by 0 matrix being printed as
[]
Any thoughts on how to do this? One idea would be to print n by 0 matrices
as above, and then print the 0 by 0 matrix in some other way. But I don't
know what would be a good idea for that, other than just Matrix() (which
isn't the prettiest for pretty printing).
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to sympy-issues@googlegroups.com.
To unsubscribe from this group, send email to
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.