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

Class log

inst/include/Rcpp/algorithm.h:171–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169 };
170
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 {
183 template< typename T >

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected