Skip to content
Prev 58374 / 398502 Next

n-th power of a matrix

jing> Hello all,

    jing> To calculate the power of a matrix, I used the command
    jing> "mtx.exp(X, n)", but there is an error saying "Error:
    jing> couldn't find function "mtx.exp"".  How can I deal
    jing> with this problem?  Jing

## First load the "Malmig" package in which the  mtx.exp()
## function is defined:

library(Malmig)

## If that gives an error as well, you also need.
install.packages("Malmig")

Martin Maechler, ETH Zurich