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

Method Rep_len

inst/include/Rcpp/sugar/functions/rep_len.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_len( const VEC_TYPE& object_, R_xlen_t len_ ) :
35 object(object_), len(len_), 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