Fast extraction of matrix diagonal
qdiag(x)
x
A vector with the diagonal elements
Note this function can only be used for extraction
Claus Ekstrom claus@rprimer.dk
Useful links