[Rd] Multithreaded code in .Call interface

2012-10-13 Thread Rob Anderson
Hi, I was wondering if it is safe to call R functions and/or R BLAS functions from within multithreaded C/C++ code(.Call interface)? It is not in case with MATLAB. I was experimenting using pthreads and OpenMP. Thanks, Rob [[alternative HTML version deleted]]

Re: [Rd] as.data.frame.matrix() returns an invalid object

2012-10-13 Thread peter dalgaard
On Oct 11, 2012, at 16:02 , Bert Gunter wrote: ... and further identical(as.list(df2),as.list(df1)) [1] TRUE in R 2.15.0 Not sure whether these sorts of degenerate cases are of much value, though. But I'll leave that for the wizards. Looks like this is easier to fix that to argue

Re: [Rd] Multithreaded code in .Call interface

2012-10-13 Thread Prof Brian Ripley
On 13/10/2012 08:09, Rob Anderson wrote: Hi, I was wondering if it is safe to call R functions and/or R BLAS functions from within multithreaded C/C++ code(.Call interface)? It is not in case with MATLAB. I was experimenting using pthreads and OpenMP. Not unless it is documented to be so.