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

Method Rep

inst/include/Rcpp/sugar/functions/rep.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( 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 % n ] ;

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected