On 8/19/11 3:59 PM, William Stein wrote:
On Fri, Aug 19, 2011 at 1:50 PM, Volker Braun<vbraun.n...@gmail.com> wrote:
For the 1-row matrix case, how about
[1, 2, 3, 4; ]
This is similar to the one-element tuple (1,) in Python.
I like that.
Interestingly, it works in MATLAB, but not in PARI.
It makes sense to work in matlab. It seems that matlab compresses empty
rows (for example, [1 2 3 4 ; ; 5 6 7 8] gives a 2x4 matrix). So
initially it is a 3-row matrix, but then matlab compresses the second
row since it is an empty row. Or I guess another way to say it is that
matlab compresses consecutive column delimiters. So matlab being sloppy
(or convenient?) makes it work.
Jason
--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org