View source: R/orthogonalBsplines.R
MatrixPower | R Documentation |
Performs the matrix power operation.
MatrixPower(A, n)
A |
A square matrix. |
n |
An integer telling the exponent. |
Only well defined for integers the matrix power operation is a convenience function to multiply a matrix, A
, with itself n
times.
A matrix of the same dimension as A
.
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.