Posts Tagged ‘ Rcpp ’

Some Rcpp benchmarks

January 22, 2012
By
Some Rcpp benchmarks

I ran the Fibonacci number example from the Rcpp package on a number of computers and operating systems. Here are the results:A. On my main computer (Core 2 Extreme 3.06GHz, 8 GB memory) running Ubuntu 10.04 (g++ 4.4.3):        test...

Read more »

… And now for solution 17, still using Rcpp

December 14, 2011
By

Here comes yet another sequel of the code optimization problem from the R wiki, still using Rcpp, but with a different strategy this time Essentially, my previous version (15) was using stringstream although we don't really need its functionality ...

Read more »

Code Optimization: One R Problem, Thirteen Solutions – Now Sixteen!

December 8, 2011
By
Code Optimization: One R Problem, Thirteen Solutions – Now Sixteen!

Introduction The old r-wiki optimisation challenge describes a string generation problem which I have bloged about previously both here and here. The Objective To code the most efficient algorithm, using R, to produce a sequence of strings based on a single integer input, e.g.: Solutions One Through Thirteen A variety of different approaches are illustrated on...

Read more »

Installing Rcpp on Windows 7 for R and C++ integration

December 7, 2011
By
Installing Rcpp on Windows 7 for R and C++ integration

Introduction Romain Francois presented an Rcpp solution on his blog to an old r-wiki optimisation challenge which I had also presented R solutions for previously on my blog. The Rcpp package provides a method for integrating R and C++. This allows for faster execution of an R project by recoding the slower R parts into C+ and thus providing potential performance...

Read more »

int64: 64 bit integer vectors for R

November 26, 2011
By
int64: 64 bit integer vectors for R

The Google Open Source Programs Office sponsored me to create the new int64 package that has been released to CRAN a few days ago. The package has been mentionned in an article in the open source blog from Google. The package defines classes i...

Read more »

Bringing 64-bit data to R

November 24, 2011
By
Bringing 64-bit data to R

The R programming language has become one of the standard tools for statistical data analysis and visualization, and is widely used by Google and many others. The language includes extensive support for working with vectors of integers, numerics (doubl...

Read more »

Code optimization, an Rcpp solution

November 10, 2011
By

Tony Breyal woke up an old code optimization problem in this blog post, so I figured it was time for an Rcpp based solution This solutions moves down Henrik Bengtsson's idea (which was at the basis of attempt 10) down to C++. The idea was to call ...

Read more »

Rcpp reverse dependency graph

October 30, 2011
By
Rcpp reverse dependency graph

I played around with reverse dependencies of Rcpp. At the moment, 44 packages depend on Rcpp and the number goes up to 53 when counting recusive reverse dependencies. I've used graphviz for the representation of the directed graph Here is the c...

Read more »

Rcpp Workshop slides

April 29, 2011
By

Dirk and I gave a full day Rcpp workshop yesterday in Chicago before the R in Finance conference. The pdfs of the slides are available here: part 1 (intro), part 2 (details), part 3 (modules) and part 4 (applications)

Read more »

Rcpp article in JSS

April 17, 2011
By
Rcpp article in JSS

The Journal of Statistical Software published our Rcpp article

Read more »

Sponsors