diag_ | R Documentation |
Symbolic diagonal matrix
diag_(x, n = 1L, declare_symbols = TRUE, ...)
x |
Character vector with diagonal |
n |
Number of times |
declare_symbols |
Passed on to |
... |
Passed on to |
if (has_sympy()) {
diag_(c(1,3,5))
diag_(c("a", "b", "c"))
diag_("a", 2)
diag_(vector_sym(4))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.