Dear Mark

Regarding your second question, the STL has a function called partial_sum() 
which can be used to compute the cumulative sum. Go to the following URL for 
details:

http://gallery.rcpp.org/articles/vector-cumulative-sum/

Barth
_______________________________________________
Rcpp-devel mailing list
Rcpp-devel@lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to