mtx.exp: Calculates the n-th power of a matrix

Description Usage Arguments Details Value Note Author(s) References Examples

Description

Calculates the n-th power of a matrix.

Usage

1
mtx.exp(X, n)

Arguments

X

a square matrix

n

the exponential value

Details

This function calculates (efficiently!) the n-th power of a matrix.

Value

Takes a matrix and returns a matrix.

Note

Original code by VCC "beautyfied" by MM

Author(s)

Vincente Canto Cassola and Martin Maechler

References

...

Examples

1
2
3
test<-matrix(c(1:16), 4,4)
pow.test<-mtx.exp(test,10)
pow.test


Search within the Biodem package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.