matexpo

0th

Percentile

Matrix Exponential

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

Keywords
multivariate, array
Usage
matexpo(x)
Arguments
x

a square matrix of mode numeric.

Value

a numeric matrix of the same dimensions than `x'.

Aliases
  • matexpo
Examples
# NOT RUN {
### 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))
# }
Documentation reproduced from package ape, version 5.3, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.