Learn R Programming

MiscMath (version 1.1)

Matpower: Matrix Power

Description

Implementation of efficient algorithm to compute the pth power of a matrix.

Usage

Matpower(X, p)

Value

a matrix containing the pth power of X.

Arguments

X

numeric square matrix

p

integer: nonnegative exponent.

References

Golub and Van Loan (1983) Matrix Computations. Algorithm 11.2-1. p. 393.