# Revision history [back]

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

 2 retagged FrédéricC 3139 ●3 ●33 ●61

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