Question: what is expm in r?
Answer: Balance a square matrix via LAPACK's DGEBAL. This is an R interface, mainly used for experimen- tation. This LAPACK routine is used internally for Eigenvalue decompositions, but also, in Ward(1977)'s algorithm for the matrix exponential. ... A a square (n × n) numeric matrix.