That's an interesting problem. AFAICT folks prefer iterators and transform() and its ilk because it allows you to swap vector() for, say, list() with minimal fuss. It is less clear that you pick up speed that way. Wouldn't the cost of log() dominate the looping, whether it's old school C style or via iterators?
Dirk -- Registration is open for the 2nd International conference R / Finance 2010 See http://www.RinFinance.com for details, and see you in Chicago in April! _______________________________________________ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
