8 Responses

  1. The Need for Speed Part 1: Building an R Package with Fortran (or C) – Data Science Austria

    […] post The Need for Speed Part 1: Building an R Package with Fortran (or C) appeared first on Strange […]


  2. Oscar Garcia-Cabrejo
    Oscar Garcia-Cabrejo December 10, 2018 at 4:45 PM |

    Dear Avi:

    Thank you so much for the post. This is exactly what I was looking for to include some fortran in one of my R packages.


  3. Han Oostdijk
    Han Oostdijk December 11, 2018 at 6:34 AM |

    Thanks


  4. A King
    A King December 11, 2018 at 1:53 PM |

    This is a great post. Thanks for sharing.


  5. R Torres
    R Torres December 12, 2018 at 10:31 AM |

    You can turn you fortran calculation into a nice one liner:

    llc = sum( max( 0.0_c_double, min(x(1:n) – a, l ) ) )

    Try also adding the pure keyword to your function, might help the compiler.


  6. The Need for Speed Part 2: C++ vs. Fortran vs. C | Strange Attractors

    […] my previous post, I described the method I use for compiling Fortran (or C) into an R package using the .Call […]


Comments are closed.