Re: [R] speed up the code

2011-02-18 Thread rex.dwyer
-project.org] On Behalf Of Hui Du Sent: Wednesday, February 16, 2011 6:29 PM To: r-help@r-project.org Subject: [R] speed up the code Hi All, The following is a snippet of my code. It works fine but it is very slow. Is it possible to speed it up by using different data structure or better solution? For

[R] speed up the code

2011-02-16 Thread Hui Du
Hi All, The following is a snippet of my code. It works fine but it is very slow. Is it possible to speed it up by using different data structure or better solution? For 4 runs, it takes 8 minutes now. Thanks a lot fun_activation = function(s_k, s_hat, x_k, s_hat_len) { common = inte