Re: [sage-devel] Literal matrix syntax

2012-01-26 Thread David Roe
>> I would like to propose the addition of a matrix literal syntax, namely >> >> sage: [1, 2; 3, 4] >> [1 2] >> [3 4] > +1 +1 from me as well > >> A second question, what of the basering? > > Consistency with "[Mm]atrix([[1,2],[3,4]])" would be most clear. So would > you argue to change basering o

Re: [sage-devel] Literal matrix syntax

2012-01-26 Thread Marco Streng
Op 26-01-2012 8:22, Robert Bradshaw schreef: I would like to propose the addition of a matrix literal syntax, namely sage: [1, 2; 3, 4] [1 2] [3 4] +1 even gp has this A second question, what of the basering? Consistency with "[Mm]atrix([[1,2],[3,4]])" would be most clear. So would you a

[sage-devel] Literal matrix syntax

2012-01-26 Thread Robert Bradshaw
I would like to propose the addition of a matrix literal syntax, namely sage: [1, 2; 3, 4] [1 2] [3 4] sage: [1, 2; 3, 4] * [5, 6; 7, 8] [19 22] [43 50] Currently one must write sage: matrix([[1, 2], [3, 4]]) [1 2] [3 4] sage: matrix([[1, 2], [3, 4]]) * matrix([[5, 6], [7, 8]]) [19 22] [43 50]