A == expm(L)), see the documentation for the matrix
exponential, expm, which can be defined
as $$e^L := \sum_{r=0}^\infty L^r/r! .$$logm(x, method = c("Higham08", "Eigen"), tol = .Machine$double.eps)logm.Higham08(x) The simple "Eigen" method tries to diagonalise the matrix
x; if that is not possible, it raises an error.
x is
computationally singular when method = "Eigen".xx,
i.e., all.equal( expm(logm(x)), x, tol) is typically true for
quite small tolerance tol. Method "Higham08" works via
The Matrix Logarithm is very nicely defined by Wikipedia,
expmm <- diag(2)
logm(m)
expm(logm(m))Run the code above in your browser using DataLab