search for: vanron

Displaying 2 results from an estimated 2 matches for "vanron".

2006 Nov 23
1
Partial derivatives of a matrix with respect to a single element
...9;ve read and used the derivative functions in R, and could (probably) write a lengthy routine to duplicate this solution, but if there's a shortcut, I have no delusions about my own laziness and will greatly appreciate your input. R. VanNimwegen Kansas State University Division of Biology vanron at ksu.edu
2007 May 06
7
A function for raising a matrix to a power?
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 A^3? Atte Tenkanen > A=rbind(c(1,1),c(-1,-2)) > A [,1] [,2] [1,] 1 1 [2,] -1 -2 > A^3 [,1] [,2] [1,] 1 1 [2,] -1 -8 But: > A%*%A%*%A [,1] [,2] [1,] 1 2 [2,] -2 -5