Hm... If you are just looking for a trick, perhaps the following
line will suit your taste :-)
sage: m = Matrix([[1,2,3],[4,5,6]])
sage: m
[1 2 3]
[4 5 6]
sage: m2 = Matrix(map(list,map(reversed,m.rows(
sage: m2
[3 2 1]
[6 5 4]
I hope there is another solution though, as this requires to
2010-07-07 09:10, Kwankyu skrev:
Does Sage have a command to get the mirror image matrix
[3,2,1]
[6,5,4]
from the matrix
[1,2,3]
[4,5,6]
Like this?
sage: m = Matrix([[1,2,3],[4,5,6]])
sage: m
[1 2 3]
[4 5 6]
sage: m2 = m[::, ::-1]
sage: m2
[3 2 1]
[6 5 4]
/ johan
--
To post to this
Hi Nathann and Johan,
Thank you for the tips.
Kwankyu
--
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at
On 7/7/10 1:26 AM, Johan Grönqvist wrote:
2010-07-07 09:10, Kwankyu skrev:
Does Sage have a command to get the mirror image matrix
[3,2,1]
[6,5,4]
from the matrix
[1,2,3]
[4,5,6]
Like this?
sage: m = Matrix([[1,2,3],[4,5,6]])
sage: m
[1 2 3]
[4 5 6]
sage: m2 = m[::, ::-1]
sage: m2
[3 2