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

Method apply

inst/include/Rcpp/sugar/operators/unary_minus.h:45–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43 typedef typename traits::storage_type<RTYPE>::type STORAGE ;
44 typedef typename unary_minus_result_type<RTYPE>::type RESULT ;
45 inline RESULT apply( STORAGE x ) const {
46 return Rcpp::traits::is_na<RTYPE>(x) ? x : ( -x ) ;
47 }
48 } ;
49 template <int RTYPE>
50 class unary_minus<RTYPE,false> {

Callers 1

operator[]Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected