MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / operator()

Method operator()

inst/include/Rcpp/algorithm.h:173–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171 struct log {
172 template< typename T >
173 inline double operator()(T val) {
174 if (!Vector< rtype< T >::RTYPE >::is_na(val)) {
175 return std::log(val);
176 }
177
178 return rtype< double >::NA();
179 }
180 };
181
182 struct exp {

Callers 1

InternalFunction_invokeFunction · 0.45

Calls 2

logFunction · 0.70
is_naFunction · 0.50

Tested by

no test coverage detected