Displaying 2 results from an estimated 2 matches for "cpparg".
Did you mean:
cpuarg
2009 Dec 22
0
Rcpp 0.7.0: R/C++ integration now even easier
...edundant on Debian/Ubuntu as gsl headers are found anyway
funx <- cfunction(signature(s="numeric", n="numeric"),
gslrng,
includes="#include <gsl/gsl_rng.h>",
Rcpp=TRUE,
cppargs="-I/usr/include",
libargs="-lgsl -lgslcblas")
print(funx(0, 5))
Brief notes on this:
1) The character variable gslrng contains valid C++ code.
2) The call to cfunction converts this C++ code into a function that
calls it -- and this fun...
2009 Dec 22
0
Rcpp 0.7.0: R/C++ integration now even easier
...edundant on Debian/Ubuntu as gsl headers are found anyway
funx <- cfunction(signature(s="numeric", n="numeric"),
gslrng,
includes="#include <gsl/gsl_rng.h>",
Rcpp=TRUE,
cppargs="-I/usr/include",
libargs="-lgsl -lgslcblas")
print(funx(0, 5))
Brief notes on this:
1) The character variable gslrng contains valid C++ code.
2) The call to cfunction converts this C++ code into a function that
calls it -- and this fun...