Displaying 2 results from an estimated 2 matches for "translatedoffset".
2009 Jan 27
1
Return values from .Call and garbage collection [Additional information added]
...retrieval, I process the data in R. A specific function is causing a problem that appears to be related to the garbage collector (judging by symptoms).
In the C code, a Matrix is created using
PROTECT(retVal = allocMatrix(INTSXP, x, y));
Values are written into this matrix using
INTEGER(retVal)[translatedOffset]=z;
where "translatedOffset" is a conversion from a row/column pair to an offset as shown in R-exts.pdf.
The last two lines of the function call are:
UNPROTECT(1);
return retVal;
The shared library was compiled with R CMD SHLIB and is called using .Call.
Which returns our completed S...
2009 Jan 27
1
Return values from .Call and garbage collection
...retrieval, I process the data in R. A specific function is causing a problem that appears to be related to the garbage collector (judging by symptoms).
In the C code, a Matrix is created using
PROTECT(retVal = allocMatrix(INTSXP, x, y));
Values are written into this matrix using
INTEGER(retVal)[translatedOffset]=z;
where "translatedOffset" is a conversion from a row/column pair to an offset as shown in R-exts.pdf.
The last two lines of the function call are:
UNPROTECT(1);
return retVal;
The shared library was compiled with R CMD SHLIB and is called using .Call.
Which returns our completed S...