Form a vector from a diagonals of a matrix
Example
The Offset of the triangular matrix is:
A=
The size of the input matrix is:
X