[Rcpp-devel] trying to insert a number as first element of alreadyexisting vector

Barth Riley barthriley at comcast.net
Sun Dec 9 10:03:33 CET 2018


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20181209/f4551119/attachment.html>


More information about the Rcpp-devel mailing list