MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / operator[]

Method operator[]

inst/include/Rcpp/sugar/functions/cbind.h:197–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195 inline R_xlen_t ncol() const { return e1.ncol() + e2.ncol(); }
196
197 inline stored_type operator[](R_xlen_t i) const {
198 return (i < e1.size()) ? e1[i] : e2[i - e1.size()];
199 }
200
201 inline stored_type operator()(R_xlen_t i, R_xlen_t j) const {
202 R_xlen_t index = i + nrow() * j;

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected