On 8/19/11 1:45 PM, Robert Bradshaw wrote:
     [a, b; c, d].change_ring(QQ)

What if I want a 1-row matrix.  Will this work?

[a,b,c,d]

Of course, this will be a problem since that is valid list syntax. For that reason, it seems more consistent that the semicolon is a shortcut for doubly-nested lists, and still insist the user do something with a matrix creation command.

But then what about:

[1, 2,
3, 4]

From the previous messages (where newlines are treated like semicolons), that should be a square 2x2 matrix, but again, it is valid python syntax.

Thanks,

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

Reply via email to