powered by
Fast extraction of matrix diagonal
qdiag(x)
A vector with the diagonal elements
The matrix to extract the diagonal from
Claus Ekstrom <claus@rprimer.dk>
Note this function can only be used for extraction