Hi Barth. That example is perfecto. I went through the list of gallery questions with my eye when looking for a cumsum so I must have missed that one somehow ( getting old possibly). Thanks a lot.
On Sun, Dec 9, 2018 at 4:03 AM Barth Riley <barthri...@comcast.net> wrote: > 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