Diagonal {ADtools}R Documentation

Diagonal matrix

Description

Diagonal matrix

Usage

Diagonal(n, x = NULL)

Arguments

n

integer; the dimension of the square matrix.

x

A scalar or a vector to be placed on the diagonal of the matrix.

Examples

Diagonal(3)
Diagonal(3, 999)
Diagonal(3, c(11, 22, 33))


[Package ADtools version 0.5.5 Index]