| Diagonal {ADtools} | R Documentation |
Diagonal matrix
Diagonal(n, x = NULL)
n |
integer; the dimension of the square matrix. |
x |
A scalar or a vector to be placed on the diagonal of the matrix. |
Diagonal(3)
Diagonal(3, 999)
Diagonal(3, c(11, 22, 33))