[Rd] Suggestion for serialization performance improvement on Windows

2010-07-09 Thread Bryan W. Lewis
Dear R developers, The slow performance of serializing to a raw vector on Windows is an issue that has appeared in this list before. It appears to be due to the frequent use of realloc from the resize_buffer method in serialize.c. I suggest a more granular, but still incremental, re-allocation

[Rd] Use of Matrix within packages in R-2.14.0

2011-11-11 Thread Bryan W. Lewis
Dear R-devel readers: I am really stuck trying resolving an issue with the use of the Matrix in one of my packages, irlba, with R-2.14.0. When I use crossprod with at least one sparse argument in the packaged code I receive the error: Error in crossprod(x, y) : requires numeric/complex matrix

Re: [Rd] a^b when a is large and b < 1 (64bit R on windows 7)

2011-11-21 Thread Bryan W. Lewis
Although it does not solve the issue, the INF result is due to the MinGW gcc math library on 64-bit Windows that R links to. One can easily see this by compiling just machar.c and checking pow and sqrt on xmax. Note that on any platform the results are likely to be quite different between pow and