Skip to content
Prev 200094 / 398506 Next

how to pass matrices from C to R effectively

Hi Duncan,

Thanks for your reply. I am not sure what you meant by "tell your C
function to use the memory that R sent to it". What R can pass to C is a
pointer to an array and the array size, assuming we are taking about the
.C mechanism. Did you mean my C function takes that array pointer and
generate the required matrix along the length of the array? If this is not
what you meant, would you please give me a small example?



Jeff
On Thu, November 12, 2009 6:53 pm, Duncan Murdoch wrote: