Generate a diagonal matrix from a vector of the diagonal entries like.

1 |

`x` |
a vector |

The difference to original `diag`

is that it always
gives a diagonal matrix and does nothing flawed in case of a length
one vector.

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

`gsi.diagExtract`

, `diag`

1 2 3 4 |

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.