Generate a diagonal matrix from a vector of the diagonal entries like.
The difference to original
diag is that it always
gives a diagonal matrix and does nothing flawed in case of a length
a diagonal matrix.
Do not use gsi.* functions directly since they are internal functions of the package
K.Gerald v.d. Boogaart http://www.stat.boogaart.de
1 2 3 4