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

Method Vectorized

inst/include/Rcpp/sugar/block/Vectorized_Math.h:36–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 typedef typename Rcpp::traits::Extractor<REALSXP,NA,VEC>::type VEC_EXT ;
35
36 Vectorized( const VEC_TYPE& object_) : object( object_.get_ref() ){}
37 inline double operator[]( R_xlen_t i) const {
38 return Func( object[i] ) ;
39 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected