On 2 June 2015 at 23:11, Yue Li wrote:
| Dear List,
|
| I’m having an issue with compiling Rcpp code using ‘fmat’ matrix type on the
| server ( Linux distro:
| CentOS release 5.11 (Final)) and wondering if someone has a quick fix.
|
| Basically, the following code works fine on my Macbook (R 3.2
It also works for me on Linux:
R> sourceCpp("/tmp/yueli.cpp")
R> set.seed(42)
R> x <- matrix(rnorm(4),2,2)
R> y <- matrix(rnorm(4),2,2)
R> fmatMultiply(x, y)
[,1] [,2]
[1,] 0.515698 2.03786
[2,] -0.295452 -0.91346
R>
so I strongly suspect that what I just stated is true: it w
Thanks for looking into it. I will try to get it work on the server.
> On Jun 3, 2015, at 6:42 AM, Dirk Eddelbuettel wrote:
>
>
> It also works for me on Linux:
>
> R> sourceCpp("/tmp/yueli.cpp")
>
> R> set.seed(42)
>
> R> x <- matrix(rnorm(4),2,2)
>
> R> y <- matrix(rnorm(4),2,2)
>
> R>
Hello,
> a) GSL for RNGs is (probably) inferior to what R does; if your main interest
> is in the R package (as opposed to R as well as a standalone program) then it
> may make sense to just use R's RNGs.
Why are the RNGs in GSL probably inferior than the ones in R? When calling C
code from R,