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

Method operator[]

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

Source from the content-addressed store, hash-verified

33 Pow( const T& object_, EXPONENT_TYPE exponent ) : object(object_), op(exponent) {}
34
35 inline double operator[]( R_xlen_t i ) const {
36 return ::pow( object[i], op );
37 }
38 inline R_xlen_t size() const { return object.size() ; }
39
40private:

Callers

nothing calls this directly

Calls 1

powFunction · 0.85

Tested by

no test coverage detected