Fast extraction of matrix diagonal

Share:

Description

Fast extraction of matrix diagonal

Usage

1
qdiag(x)

Arguments

x

The matrix to extract the diagonal from

Details

Note this function can only be used for extraction

Value

A vector with the diagonal elements

Author(s)

Claus Ekstrom <claus@rprimer.dk>

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