I'm not aware of any R implementation of a logarithm of a matrix. I've seen discussions on this list of the difficulties involved in computing functions of matrices, but I know of nothing. (The 'nlme' package has 'pdLogChol', which may be related, but I think it's different.)
I wish you luck, and I hope you will find the time to package it for the rest of us.
Best Wishes, Spencer Graves
> Dear R users,
> Has anyone implemented a "matrix log" function in R similar to the
> function logm() in Matlab? I did a quick R site search and browsed the
> contributed packages to no avail.
> The octave function is far too simplistic and fails for the Matlab test
> matrix. Ideally, the code of Cheng, Higham, and Laub (2001) or something
> similar could be utilized. Just checking before I spend time porting
> Translational Medicine & Genetics
> [[alternative HTML version deleted]]
> Rfirstname.lastname@example.org mailing list
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Archive maintained by Robert King, hosted by
the discipline of
statistics at the
University of Newcastle,
Archive generated by hypermail 2.1.8, at Sat 17 Jun 2006 - 02:12:48 EST.
Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.