Extracts the diagonal of a matrix. More...
Extracts the diagonal of a matrix.
Returns the diagonal of a matrix.