Federico Calboli <[EMAIL PROTECTED]> writes: > Dear All, > > I would like to ask why the zeroeth power of a matrix gives me a matrix > of ones rather than the identity matrix:
Because arithmetic on a matrix works element-wise. M^2 is not equal to M %*% M either (but is equal to M*M). (R doesn't have the matrix exponential function. Lifting expm() from Octave has been on my (virtual) TODO list for some time now...) -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - ([EMAIL PROTECTED]) FAX: (+45) 35327907 ______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
