raise.matrix {biotools} | R Documentation |
Raising a Square Matrix to a Power
Description
raise.matrix
raises a square matrix to a power by using
spectral decomposition.
Usage
raise.matrix(x, power = 1)
Arguments
x |
a square matrix. |
power |
numeric; default is 1. |
Value
An object of class "matrix".
Author(s)
Anderson Rodrigo da Silva <anderson.agro@hotmail.com>
See Also
Examples
m <- matrix(c(1, -2, -2, 4), 2, 2)
raise.matrix(m)
raise.matrix(m, 2)
# End (not run)
[Package biotools version 4.2 Index]