raise.matrix: Raising a Square Matrix to a Power

View source: R/raise.matrix.r

raise.matrixR 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

eigen, svd

Examples

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

# End (not run)

biotools documentation built on April 3, 2025, 9:55 p.m.