MatrixPower {orthogonalsplinebasis} | R Documentation |
Performs the matrix power opperation.
MatrixPower(A, n)
A |
A square matrix. |
n |
An integer telling the exponent. |
Only well defined for integers the matrix power opperation is a convenience function to multipy a matrix, A
, with itself n
times.
A matrix of the same dimention as A
.
Andrew Redd <aredd at stat.tamu.edu>
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