powered by
Calculates the n-th power of a matrix.
mtx.exp(X, n)
a square matrix
the exponential value
Takes a matrix and returns a matrix.
This function calculates (efficiently!) the n-th power of a matrix.
...
# NOT RUN { test<-matrix(c(1:16), 4,4) pow.test<-mtx.exp(test,10) pow.test # }
Run the code above in your browser using DataLab