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

Function takeLogStop

inst/tinytest/cpp/exceptions.cpp:42–47  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

40
41// [[Rcpp::export]]
42double takeLogStop(double val) {
43 if (val <= 0.0) {
44 Rcpp::stop("Inadmissible value");
45 }
46 return log(val);
47}
48
49// [[Rcpp::export]]
50double takeLogRcppLocation(double val) {

Callers

nothing calls this directly

Calls 2

stopFunction · 0.85
logFunction · 0.50

Tested by

no test coverage detected