Extracts the diagonal of a matrix. More...

Modules

 diag
 Extracts the upper triangular matrix.
 

Detailed Description

Extracts the diagonal of a matrix.

Returns the diagonal of a matrix.