Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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]]
42
double takeLogStop(double val) {
43
if (val <= 0.0) {
44
Rcpp::stop(
"Inadmissible value"
);
45
}
46
return log(val);
47
}
48
49
// [[Rcpp::export]]
50
double takeLogRcppLocation(double val) {
Callers
nothing calls this directly
Calls
2
stop
Function · 0.85
log
Function · 0.50
Tested by
no test coverage detected