Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single value vs. vector sampling #68

Open
coatless opened this issue Aug 15, 2019 · 1 comment
Open

Single value vs. vector sampling #68

coatless opened this issue Aug 15, 2019 · 1 comment

Comments

@coatless
Copy link

There are two sets of underlying samplers in Rcpp.

Samplers returning a NumericVector are from Rcpp:: and those that return a double are from R::.

E.g.

rnorm(1, 2, 3) => R::rnorm(2.0, 3.0)
rnorm(50, 2, 3) => Rcpp::rnorm(50, 2.0, 3.0)
@dirkschumacher
Copy link
Owner

I think I would go with the Rcpp one for now - the least amount of work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants