lazyInv | R Documentation |
Compute the inverse of a lazy matrix.
lazyInv(M)
M |
a |
A lazyMatrix
object.
This function does not check the invertibility. If the matrix is
not invertible, you will get some NaN
in the result (after
calling as.double
).
library(lazyNumbers) set.seed(666L) M <- lazymat(matrix(rpois(9L, lambda = 4), nrow = 3L, ncol = 3L)) invM <- lazyInv(M) I3 <- M %*% invM as.double(I3) == diag(3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.