On Thu, Jan 26, 2012 at 12:09 PM, Jason Grout
<jason-s...@creativetrax.com> wrote:

> Another option would be:
>
> [QQ: 1,2,3; 4,5,6]

QQ:1 is a slice...

> or, as Robert suggests:
>
> [1,2,3; 4,5,6, base_ring=QQ] -- but then it looks like base_ring=QQ is
> another element.

assignments aren't literals... but I don't like this.

My thought for R[1,2,3;4,5,6] is that just as we preparse

'[1..2]' to 'ellipsis_range(Integer(1),Ellipsis,Integer(2))', we'd preparse

'[1,2,3;4,5,6]' to 'matrix_literal((1,2,3),(4,5,6))'

where

Ring.__getitem__(self, x)

could have a fast option for matrix literals -> matrices.

-- 
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