Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

reverse a matrix

We can count backwards to flip a matrix A upside down with

sage: A[::-1,:]=A; A

Can we do it from left to right; I mean, for the matrix A=

[ 3  2 -5  0]
[ 1 -1  1 -4]
[ 1  0  1 -3]

Is there an easy way to obtain the following matrix

[ 0 -5  2  3]
[-4  1 -1  1]
[ 3  1  0  1]
click to hide/show revision 2
retagged

reverse a matrix

We can count backwards to flip a matrix A upside down with

sage: A[::-1,:]=A; A

Can we do it from left to right; I mean, for the matrix A=

[ 3  2 -5  0]
[ 1 -1  1 -4]
[ 1  0  1 -3]

Is there an easy way to obtain the following matrix

[ 0 -5  2  3]
[-4  1 -1  1]
[ 3  1  0  1]