matexpo: Matrix Exponential

Description Usage Arguments Value Author(s) Examples

Description

This function computes the exponential of a square matrix using a spectral decomposition.

Usage

1

Arguments

x

a square matrix of mode numeric.

Value

a numeric matrix of the same dimensions than ‘x’.

Author(s)

Emmanuel Paradis

Examples

1
2
3
4
5
### 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))

gjuggler/ape documentation built on May 17, 2019, 6:03 a.m.