qdiag: Fast extraction of matrix diagonal

View source: R/RcppExports.R

qdiagR Documentation

Fast extraction of matrix diagonal

Description

Fast extraction of matrix diagonal

Usage

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>


ekstroem/MESS documentation built on July 28, 2023, 4:02 a.m.