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

Function runit_Range

inst/tinytest/cpp/sugar.cpp:346–351  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

344
345// [[Rcpp::export]]
346NumericVector runit_Range(){
347 NumericVector xx(8) ;
348 xx[ Range(0,3) ] = exp( seq_len(4) ) ;
349 xx[ Range(4,7) ] = exp( - seq_len(4) ) ;
350 return xx ;
351}
352
353// [[Rcpp::export]]
354IntegerVector runit_range_plus(int start, int end, int n) {

Callers

nothing calls this directly

Calls 3

seq_lenFunction · 0.85
RangeClass · 0.50
expFunction · 0.50

Tested by

no test coverage detected