powered by
Symbolic diagonal matrix
diag_(x, n = 1L, declare_symbols = TRUE, ...)
Character vector with diagonal
Number of times x should be repeated
x
Passed on to as_sym() when constructing symbolic matrix
as_sym()
Passed on to rep(x, n, ...)
rep(x, n, ...)
if (has_sympy()) { diag_(c("a", "b", "c")) diag_("a", 2) }
Run the code above in your browser using DataLab