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

Method Rep_each

inst/include/Rcpp/sugar/functions/rep_each.h:34–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32 typedef typename Rcpp::traits::storage_type<RTYPE>::type STORAGE ;
33
34 Rep_each( const VEC_TYPE& object_, R_xlen_t times_ ) :
35 object(object_), times(times_), n(object.size()) {}
36
37 inline STORAGE operator[]( R_xlen_t i ) const {
38 return object[ i / times ] ;

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected