raise.matrix: Raising a Square Matrix to a Power

Description Usage Arguments Value Author(s) See Also Examples

View source: R/raise.matrix.r

Description

raise.matrix raises a square matrix to a power by using spectral decomposition.

Usage

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

eigen, svd

Examples

1
2
3
4
5
m <- matrix(c(1, -2, -2, 4), 2, 2)
raise.matrix(m)
raise.matrix(m, 2)

# End (not run)

biotools documentation built on Aug. 7, 2021, 9:06 a.m.