MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / runit_rgamma

Function runit_rgamma

inst/tinytest/cpp/rmath.cpp:114–120  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

112
113// [[Rcpp::export]]
114NumericVector runit_rgamma(double a, double b) {
115 NumericVector o(5);
116 for (int i = 0; i < o.size(); i++) {
117 o[i] = R::rgamma(a, b);
118 }
119 return o;
120}
121
122// [[Rcpp::export]]
123NumericVector runit_rgamma_sugar(double a, double b) {

Callers

nothing calls this directly

Calls 2

rgammaFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected