Word description Find the anti-diagonal of a matrix.
This diagonal begins in the upper right of the matrix, continuing downward and leftward for all indices in the square-matrix subset of the input (see <square-rows>).
Notes
•
If the number of rows in the square subset of the input is even, then this diagonal will not contain elements found in the main-diagonal. However, if the size of the square subset is odd, then this diagonal will share at most one element with main-diagonal.
•
This diagonal is sometimes called the second diagonal.
The square subset of the following input matrix consists of all rows but the last. The anti-diagonal does not include the last row because it has no fourth element.