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

Method operator()

inst/include/Rcpp/algorithm.h:195–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193 struct sqrt {
194 template< typename T >
195 inline double operator()(T val) {
196 if (!Vector< rtype< T >::RTYPE >::is_na(val)) {
197 return std::sqrt(val);
198 }
199
200 return rtype< double >::NA();
201 }
202 };
203} // namespace helpers
204

Callers

nothing calls this directly

Calls 2

sqrtFunction · 0.70
is_naFunction · 0.50

Tested by

no test coverage detected