On Thu, Jan 26, 2012 at 12:09 PM, Jason Grout
<jason-s...@creativetrax.com> wrote:
> On 1/26/12 1:57 PM, Tom Boothby wrote:
>
>> It would be nice to be able to specify a type.  Perhaps
>>
>> R.[1,2,3;2,3,4] ->  Matrix(R,[[1,2,3],[2,3,4]])
>>
>> or perhaps even
>>
>> R[1,2,3;2,3,4]
>
>
> Another option would be:
>
> [QQ: 1,2,3; 4,5,6]
>
> or, as Robert suggests:
>
> [1,2,3; 4,5,6, base_ring=QQ] -- but then it looks like base_ring=QQ is
> another element.

My thoughts were that keyword arguments after the final semicolon
would get passed as keyword arguments to the matrix constructor, so
one could do [1,2,3; 4,5,6; sparse=True, base_ring=QQ, ...]. R[...] or
[R: ...] aren't bad ideas either (though the former gets messy to
"pick out the R" which may be an arbitrary expression).

> As a side note, I guess if QQ^2 gives the vector space over QQ, then
> QQ^(2,3) should give the matrix space over QQ of 2x3 matrices (I don't think
> it does now, but that would be nice if it did).

+1

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