Hi,  I am trying to perform recurrent matrix multiplication / addition, i.e Given a matrix X, Iâd like to do the following: X + X %*% X + X %*% X %*% X + ⦠ and so on. If I use X^n, it does not perform matrix multiplication but computes each element of the matrix  The only way I found to compute this is by using loops which is time consuming.  Any idea if a simplified function exists? Thank you in advance  Arnaud
[[alternative HTML version deleted]]
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.