https://github.com/cran/ape
Raw File
Tip revision: 3676ffeb549b4239e17b2d05741229a52ba788f7 authored by Emmanuel Paradis on 19 March 2008, 00:00:00 UTC
version 2.1-3
Tip revision: 3676ffe
matexpo.Rd
\name{matexpo}
\alias{matexpo}
\title{Matrix Exponential}
\usage{
matexpo(x)
}
\arguments{
  \item{x}{a square matrix of mode numeric.}
}
\description{
  This function computes the exponential of a square matrix using a
  spectral decomposition.
}
\value{
  a numeric matrix of the same dimensions than `x'.
}
\author{Emmanuel Paradis \email{Emmanuel.Paradis@mpl.ird.fr}}
\examples{
### 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))
}
\keyword{array}
\keyword{multivariate}
back to top