matexpo | R Documentation |
This function computes the exponential of a square matrix using a spectral decomposition.
matexpo(x)
x |
a square matrix of mode numeric. |
a numeric matrix of the same dimensions than ‘x’.
Emmanuel Paradis
### a simple rate matrix:
m <- matrix(0.1, 4, 4)
diag(m) <- -0.3
### towards equilibrium:
for (t in c(1, 5, 10, 50)) print(matexpo(m*t))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.