Description Usage Arguments Value Examples
Returns an offset diagonal matrix.
1 | augmented_diag(d, offset)
|
d |
Matrix dimensional (square matrix) |
offset |
Offset from the diagonal |
A matrix with an offset diagonal of ones.
1 2 3 | d <- 10
offset <- 1
augmented_diag(d, offset) # zeroes everywhere except 1s on the +1 diag
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.