search for: r67924

Displaying 5 results from an estimated 5 matches for "r67924".

Did you mean: 367924
2015 Mar 02
3
R-devel does not update the C++ returned variables
On 2 March 2015 at 09:09, Duncan Murdoch wrote: | I generally recommend that people use Rcpp, which hides a lot of the | details. It will generate your .Call calls for you, and generate the | C++ code that receives them; you just need to think about the real | problem, not the interface. It has its own learning curve, but I think | it is easier than using the low-level code that you need to
2015 Mar 02
3
R-devel does not update the C++ returned variables
...t;- microbenchmark::microbenchmark(doubleThisNum(i), doubleThisInt(i), i*2, 2*i, i*2L, 2L*i, i+i, times=100) plot(mb, log="y", notch=TRUE) > (mb <- microbenchmark(doubleThis(i), i*2, 2*i, i*2L, 2L*i, i+i, times=2^12)) > ## Lynne (i7; FC 20), R Under development ... (2015-03-02 r67924): > ## Unit: nanoseconds > ## expr min lq mean median uq max neval cld > ## doubleThis(i) 762 985 1319.5974 1124 1338 17831 4096 b > ## i * 2 124 151 258.4419 164 221 22224 4096 a > ## 2 * i 127 154 266.4707 169 216 20213 4096...
2015 Mar 02
1
R-devel does not update the C++ returned variables
...and rename the function names as needed to have two defined concurrently. Dirk | | ##---- now "test": | require(microbenchmark) | i <- 1:10 | (mb <- microbenchmark(doubleThis(i), i*2, 2*i, i*2L, 2L*i, i+i, times=2^12)) | ## Lynne (i7; FC 20), R Under development ... (2015-03-02 r67924): | ## Unit: nanoseconds | ## expr min lq mean median uq max neval cld | ## doubleThis(i) 762 985 1319.5974 1124 1338 17831 4096 b | ## i * 2 124 151 258.4419 164 221 22224 4096 a | ## 2 * i 127 154 266.4707 169 216 20213 4096 a | ##...
2015 Mar 02
0
R-devel does not update the C++ returned variables
...00% trivial when working with compiled code. When testing that, I've went a step further: ##---- now "test": require(microbenchmark) i <- 1:10 (mb <- microbenchmark(doubleThis(i), i*2, 2*i, i*2L, 2L*i, i+i, times=2^12)) ## Lynne (i7; FC 20), R Under development ... (2015-03-02 r67924): ## Unit: nanoseconds ## expr min lq mean median uq max neval cld ## doubleThis(i) 762 985 1319.5974 1124 1338 17831 4096 b ## i * 2 124 151 258.4419 164 221 22224 4096 a ## 2 * i 127 154 266.4707 169 216 20213 4096 a ## i * 2L 14...
2015 Mar 02
0
R-devel does not update the C++ returned variables
...(doubleThisNum(i), doubleThisInt(i), > i*2, 2*i, i*2L, 2L*i, i+i, times=100) > plot(mb, log="y", notch=TRUE) > > >> (mb <- microbenchmark(doubleThis(i), i*2, 2*i, i*2L, 2L*i, i+i, >> times=2^12)) >> ## Lynne (i7; FC 20), R Under development ... (2015-03-02 r67924): >> ## Unit: nanoseconds >> ## expr min lq mean median uq max neval cld >> ## doubleThis(i) 762 985 1319.5974 1124 1338 17831 4096 b >> ## i * 2 124 151 258.4419 164 221 22224 4096 a >> ## 2 * i 127 154 266.4707 1...