Displaying 1 result from an estimated 1 matches for "cintfn".
2005 May 09
2
use "integrate" for functions defined in C, not R
...ncluding 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){ return(x);}
static void Cintfn(double *x, int n)
{
int i;
for(i = 0; i < n; i++)
x[i] = f1(x[i]);
return;
}
3. Similar to "call_dqags", I...