MatrixPower: Matrix Power

Description Usage Arguments Details Value Author(s) Examples

Description

Performs the matrix power opperation.

Usage

1

Arguments

A

A square matrix.

n

An integer telling the exponent.

Details

Only well defined for integers the matrix power opperation is a convenience function to multipy a matrix, A, with itself n times.

Value

A matrix of the same dimention as A.

Author(s)

Andrew Redd <aredd at stat.tamu.edu>

Examples

1
2
3
4
5
A<-rbind(0,cbind(diag(1:5),0))  #a nilpotent matrix
A
MatrixPower(A,3)
MatrixPower(A,5)
MatrixPower(A,6)    #Gets to a zero matrix


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