vecdiag {lazy.mat}R Documentation

Returns diagonal elements of A as a vector

Description

Returns diagonal elements of A as a vector

Usage

vecdiag(A)

Arguments

A

Input square matrix or scalar

Details

Can be used with a character matrix

Value

diagonal elements of A as a vector

Examples

vecdiag(demomat(2,2))

[Package lazy.mat version 0.1.3 Index]