vecdiag {lazy.irtx}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.irtx version 1.0.1 Index]