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]]


