powered by
Diagonal matrix (memoised)
Diagonal0(...)
`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.