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]]
______________________________________________
[email protected] 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.