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

Class SeqLen

inst/include/Rcpp/sugar/functions/seq_along.h:28–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26namespace sugar{
27
28class SeqLen : public VectorBase< INTSXP,false,SeqLen > {
29public:
30 SeqLen( R_xlen_t len_ ) : len(len_){}
31
32 inline R_xlen_t operator[]( R_xlen_t i ) const {
33 return 1 + i ;
34 }
35 inline R_xlen_t size() const { return len ; }
36
37private:
38 R_xlen_t len ;
39} ;
40
41} // sugar
42

Callers 2

seq_alongFunction · 0.85
seq_lenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected