View source: R/lin_alg_blockinv.R
inv_block | R Documentation |
Inverse of block matrix
inv_block(x)
x |
A block matrix, either a caracas matrix, or a dense or a sparse matrix. |
The inverse in the same form as x.
Søren Højsgaard
if (has_sympy()) {
I <- diag_(1, 3)
M <- as_sym(matrix(c("a", "b", "c", "d"), nrow=2))
IM <- kronecker(I, M)
inv(IM)
inv_block(IM)
IM. <- subs(IM, c("a", "b", "c", "d"), c(2,1,2,2))
inv_block(IM.)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.