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

Method operator()

inst/include/Rcpp/algorithm.h:184–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182 struct exp {
183 template< typename T >
184 inline double operator()(T val) {
185 if (!Vector< rtype< T >::RTYPE >::is_na(val)) {
186 return std::exp(val);
187 }
188
189 return rtype< double >::NA();
190 }
191 };
192
193 struct sqrt {

Callers

nothing calls this directly

Calls 2

expFunction · 0.70
is_naFunction · 0.50

Tested by

no test coverage detected