Displaying 1 result from an estimated 1 matches for "rxdate".
Did you mean:
rdate
2009 Apr 14
1
R console freezes after several runs of compiled C code
...I followed the instructions of calling R_ProcessEvents()
regularly but still couldn't work it out (the callings were removed from the
below C code).
I am using R-2.8.1 on Windows XP service pack 3. The Rtools is version 2.9.
I have the following C code:
void rx(int *n, int *m, int *rxmax,int *rxdate, int *refills,int *rxs) {
int i,j,k, total;
int cap[*n][*m];
int rx[*n* *rxmax][*n];
for (i=0;i<*n;i++)
for (j=0;j<*m;j++)
cap[i][j]=0;
for (i=0;i<*n* *rxmax;i++) {
rx[i][0]=*(rxdate+i);
rx[i][1]=*(refills+i);
}
for (i=0;i<*n;i=i+1)
for (j=*rxmax *i;...