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

Function runit_rexp

inst/tinytest/cpp/rmath.cpp:399–405  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

397
398// [[Rcpp::export]]
399NumericVector runit_rexp(double a) {
400 NumericVector o(5);
401 for(int i = 0; i < o.size(); i++) {
402 o[i] = R::rexp(a);
403 }
404 return o;
405}
406
407// [[Rcpp::export]]
408NumericVector runit_rexp_sugar(double a) {

Callers

nothing calls this directly

Calls 2

rexpFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected