Displaying 4 results from an estimated 4 matches for "gsl_rng".
2012 Jun 16
0
R CMD -lgsl -lgslcblas *.c returns a fatal error: gsl/gsl_rng.h no such file or directory exists
...ampler. A couple webpages suggested the C/GSL might
be optimal.
My issue is that even though the R CMD SHLIB *c. built the *.dll for the
simple example, when I installed GSL for the (64-bit system), the apparently
appropriate terminal command, R CMD -lgsl -lgslcblas *c, returns a fatal
error: gsl/gsl_rng.h no such file or directory exists. I understand the
issue may be with the way my windows paths are set up. My paths are:
PATH =
c:\R\Rtools\bin;c:\R\Rtools\gcc-4.6.3\bin;C:/R/R-2.15.0/bin/x64;C:\Program
Files (x86)\MiKTeX 2.8\miktex\bin;C:\Program Files\Common Files\Microsoft
Shared\Windows Live...
2012 Jun 09
0
-lgsl -lgslcblas fatal error no such file or directory
...n
astronomically time consuming with the JAGS Sampler. A couple webpages
suggested the C/GSL might be optimal.
My issue is that even though the R CMD SHLIB *c built the *dll for simple
examples, when I installed GSL for the (64 bit system), the R CMD -lgsl
-lgslcblas *c returns a fatal error: gsl/gsl_rng.h no such file or directory
exists. My paths are:
Does the order matter? I think Rtools needed to go first (in their order) in
the path list.
PATH =
c:\R\Rtools\bin;c:\R\Rtools\gcc-4.6.3\bin;C:/R/R-2.15.0/bin/x64;C:\Program
Files (x86)\MiKTeX 2.8\miktex\bin;C:\Program Files\Common Files\Microsoft...
2009 Dec 22
0
Rcpp 0.7.0: R/C++ integration now even easier
...s (as you
wouldn't need this to access random-number generators as R has its own).
Consider this R code snippet:
## use Rcpp to pass down a parameter for the seed, and a vector size
gslrng <- '
int seed = RcppSexp(s).asInt();
int len = RcppSexp(n).asInt();
gsl_rng *r;
gsl_rng_env_setup();
std::vector<double> v(len);
r = gsl_rng_alloc (gsl_rng_default);
gsl_rng_set (r, (unsigned long) seed);
for (int i=0; i<len; i++) {
v[i] = gsl_rng_get (r);
}
gsl_rng_free(r);
return RcppSexp(v).a...
2009 Dec 22
0
Rcpp 0.7.0: R/C++ integration now even easier
...s (as you
wouldn't need this to access random-number generators as R has its own).
Consider this R code snippet:
## use Rcpp to pass down a parameter for the seed, and a vector size
gslrng <- '
int seed = RcppSexp(s).asInt();
int len = RcppSexp(n).asInt();
gsl_rng *r;
gsl_rng_env_setup();
std::vector<double> v(len);
r = gsl_rng_alloc (gsl_rng_default);
gsl_rng_set (r, (unsigned long) seed);
for (int i=0; i<len; i++) {
v[i] = gsl_rng_get (r);
}
gsl_rng_free(r);
return RcppSexp(v).a...