search for: integr_fn

Displaying 2 results from an estimated 2 matches for "integr_fn".

2005 May 09
2
use "integrate" for functions defined in C, not R
...ot;integrate" function ( that calls Rdqagi and Rdqags) so that I can integrate a function defined in C, instead of passing from R. Is there a way for doing this? My unsuccessful attempt: I looked into the files (including integrate.c, Applic.h) and 1. modified the definition of "integr_fn" by droping the environment "*ex", void integr_fn(double *x, int n) and dropped all use of "ex" used in the code 2. defined my checker function f1 and the vectorizing function "Cintfn" in place of "Rintfn" double f1(double x){ retur...
2024 Jul 29
1
Minor inconsistencies in tools:::funAPI()
Hi Ivan Can you please clarify what input files should be used with your proposed function? I tried a few files in r-svn/src/include and one of them gave me an error. > getdecl("~/R/r-svn/src/include/R.h") [1] "R_FlushConsole" "R_ProcessEvents" "R_WaitEvent" > getdecl("~/R/r-svn/src/include/Rdefines.h") Error in regmatches(lines,