Re: [Rd] Huge matrices in .Call

2006-08-24 Thread Thomas Lumley
On Thu, 24 Aug 2006, Hin-Tak Leung wrote: > Dominick Samperi wrote: >> I assume that the fact that SEXP's passed through .Call >> are read-only is a convention, consistent with R semantics. Yes >> This can be awkward when huge matrices are passed >> as in: >> newP <- .Call("myfunc", P) >> becaus

Re: [Rd] Huge matrices in .Call

2006-08-24 Thread Hin-Tak Leung
Dominick Samperi wrote: > I assume that the fact that SEXP's passed through .Call > are read-only is a convention, consistent with R semantics. > > This can be awkward when huge matrices are passed > as in: > newP <- .Call("myfunc", P) > because this would cause the huge matrix to be copied. Yes,