[R] A function for raising a matrix to a power?

Michael Dewey info at aghmed.fsnet.co.uk
Mon May 7 14:51:33 CEST 2007


At 15:48 06/05/2007, Ron E. VanNimwegen wrote:
>>  Hi,
>>
>>Is there a function for raising a matrix to a power? For example if 
>>you like to compute A%*%A%*%A, is there an abbreviation similar to A3?
>>
>>Atte Tenkanen

I may be revealing my ignorance here, but is MatrixExp in the msm 
package (available from CRAN) not relevant here?

[snip other suggestion]



Michael Dewey
http://www.aghmed.fsnet.co.uk



More information about the R-help mailing list