I would like to write a fast version of a function which contains slow
loops that I cannot vectorize.
I would like to rewrite it in C, but in the loops I need to call a few
(two) R functions.
Which is the best way to do so? I have read that one can call a C library
which import all the R functions (R.h, is it?). Is that efficient? I tried
to have a look into the internal C code to find just the two functions I
need, but it is quite complicated and I did not succeeded.
Any suggestion?
Thanks a lot, Enrico Bibbona

	[[alternative HTML version deleted]]

