anti-transpose ( matrix -- newmatrix )
Matrix operations

Prev:transpose ( matrix -- newmatrix )
Next:matrix-nth ( pair matrix -- elt )


Vocabulary
math.matrices

Inputs
matrixa matrix


Outputs
newmatrixa matrix


Word description
Like transpose except that the matrix is transposed over the anti-diagonal, so that the anti-diagonal itself is preserved and the main-diagonal is reversed.

Notes
This word is the opposite variant of transpose.

Examples
USING: math.matrices sequences prettyprint ; 5 <iota> <diagonal-matrix> anti-transpose .
{ { 4 0 0 0 0 } { 0 3 0 0 0 } { 0 0 2 0 0 } { 0 0 0 1 0 } { 0 0 0 0 0 } }


Definition