Skip to content
Prev 4914 / 10988 Next

[Rcpp-devel] How to increase the coding efficiency

c s
Hi Honglang,

I recommend looking into using the solve() function in Armadillo, instead
of inv(). Using solve() will be considerably faster.

More details here:
http://arma.sourceforge.net/docs.html#solve


On Thursday, December 6, 2012, Honglang Wang <wanghonglang2008 at gmail.com>
wrote:
minimal or not:
eps=unlist(lapply(1:n,function(x){as.matrix(arima.sim(list(ar=rho),m,sd=sqrt(sig2*(1-rho^2))))}))
betahat(ker,x,X,y,t,h,m)$betahat))))
NumericVector tr, double h, int m) {
have
have no
not
of
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20121210/124ff8b5/attachment.html>