mpow: Power of a Matrix

Description Usage Arguments Value Author(s) Examples

Description

%^% calculates x^p for the square matrix, x, by spectral decomposition.

Usage

1
x%^%p

Arguments

x

A square matrix.

p

The power to which the matrix is to be raised.

Value

%^% returns the power of a matrix.

Author(s)

J.K. Lindsey

Examples

1
2
3
4
5
6
7
## Not run: 
x <- matrix(c(0.4,0.6,0.6,0.4),nrow=2)
x%^%2
x%^%10
x%^%20

## End(Not run)


Search within the rmutil 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.