]> git.donarmstrong.com Git - ape.git/blob - man/matexpo.Rd
a38b58135dd46c91666001cb78a7e05cce63f589
[ape.git] / man / matexpo.Rd
1 \name{matexpo}
2 \alias{matexpo}
3 \title{Matrix Exponential}
4 \usage{
5 matexpo(x)
6 }
7 \arguments{
8   \item{x}{a square matrix of mode numeric.}
9 }
10 \description{
11   This function computes the exponential of a square matrix using a
12   spectral decomposition.
13 }
14 \value{
15   a numeric matrix of the same dimensions than `x'.
16 }
17 \author{Emmanuel Paradis \email{Emmanuel.Paradis@mpl.ird.fr}}
18 \examples{
19 ### a simple rate matrix:
20 m <- matrix(0.1, 4, 4)
21 diag(m) <- -0.3
22 ### towards equilibrium:
23 for (t in c(1, 5, 10, 50)) print(matexpo(m*t))
24 }
25 \keyword{array}
26 \keyword{multivariate}