View source: R/lin-alg-advanced.R
do_la | R Documentation |
Do linear algebra operation
do_la(x, slot, ...)
x |
A matrix for which a property is requested |
slot |
The property requested |
... |
Auxillary arguments |
Returns the requested property of a matrix.
if (has_sympy()) { A <- matrix(c("a", "0", "0", "1"), 2, 2) %>% as_sym() do_la(A, "QR") QRdecomposition(A) do_la(A, "eigenval") eigenval(A) do_la(A, "eigenvec") eigenvec(A) do_la(A, "inv") inv(A) do_la(A, "echelon_form") do_la(A, "rank") do_la(A, "det") # Determinant det(A) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.