Learn R Programming

ADtools (version 0.5.4)

Diagonal0: Diagonal matrix (memoised)

Description

Diagonal matrix (memoised)

Usage

Diagonal0(...)

Arguments

...

`n` integer; the dimension of the square matrix.

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

Use empty argument to clear the cache.