Learn R Programming

MESS (version 0.5.7)

qdiag: Fast extraction of matrix diagonal

Description

Fast extraction of matrix diagonal

Usage

qdiag(x)

Arguments

x

The matrix to extract the diagonal from

Value

A vector with the diagonal elements

Details

Note this function can only be used for extraction